Direkt zum Inhalt

Newsletter Serie mit 22 Ratschlägen zum Thema Online Marketing und Inbound Marketing.
Anmelden

 

Terminal cheat sheet

This will make you happy again.
 
Stage Image: 

Just some common used commands to make our lives easier.

Misc

Use "du" with human readable file size and sort them:

du -sh * | sort -h du -h --max-depth=1 * | sort -h

SVN

Remove all ".svn" directories:

find . -name .svn -exec rm -rf {} \;

Process

How to stop a process immediately

ps -fx | grep process_name

kill -9 process_id

SSH

Dump / backup remote database with ssh

ssh USER@MACHINE 'mysqldump --opt -uDBUSER -pDBPASSWORD DB' | cat > FILE.sql

(Un-)Zip Files and Folders

tar cfvz NAME.tar.gz file/folder

tar xfvz NAME.tar.gz