Useful Command Line Scripts

Useful Command Line Scripts

Coding
Below is a list of very common linux commands that any linux person should know by heart. From gzipping files, to running backups this is my personal cheat sheet Compressing Files and Folders Unzip 7z Archive 7za x myfiles.7z gzip File gzip -9 file gzip Folder tar -zcvf archive-name.tar.gz directory-name Uncompress Gzip File gzip -d file.gz Remove Files and Folders Removing a large number of files If you're getting this error: /bin/rm: Argument list too long. Use this command: find . -type f -delete Remove folder from SVN rm -rf `find . -type d -name .svn` Remove ._ files find . -name "._*" -exec rm '{}' \; -print Remove Dreamweaver Notes rm -rf `find . -type d -name _notes` Renaming Multiple Files find . -name "*.jpg" -exec sh -c 'mv…
Read More