Posted By

onefastsnail on 05/24/12


Tagged


Versions (?)

files and folders


 / Published in: Other
 

  1. #copy folder and contents
  2. cp -rv /home/breo/public_html/admin/* /home/breo/public_html2/admin
  3.  
  4. #rename folder or file
  5. mv admin admin1
  6.  
  7. #ssh in
  8.  
  9. #sync files
  10. rsync -av /home/xile/public_html/pics/ /home/xile/public_html2/pics_old/
  11.  
  12. #get folder size in mb
  13. du -sm pics_old
  14.  
  15. #symbolic links
  16. ln -s /home/whatever/thesourcefile.html thenewlinkefile.php
  17.  
  18.  
  19. #find and show file line number with highlighitng
  20. grep --color=auto -iRnH 'website sale order' *.php
  21.  
  22.  
  23. cat find.item.comp3.php | grep --color=auto -inH '$path' > output.txt
  24.  
  25. #show file size
  26. du -h filename.txt

Report this snippet  

You need to login to post a comment.