top in Batch Mode
Run top in batch mode
top -b -d 10 -n 3
Run top in batch mode
top -b -d 10 -n 3
Transfer stdin and stdout to and from machines over the network
ssh remote_machine 'cat - > file' < file
You can use this command to create a screencast using ffmpeg.
ffmpeg -f x11grab -s 800x600 -i :0.0 /tmp/screencast.mpg
Use this command to move files from folders two level deep to the current folder…
mv */*.* .
This is the command used to post a new task to the nexty GTD tool.
curl --basic --user "binnyva:password" --cookie-jar /tmp/nexty-cookies.txt --data-ascii "task=`echo $@|tr ' ' '+'`&layout=cli" "http://nexty.org/tasks/add.php"
Show rpm packages of a group software
rpm -qg "System Environment/Daemons"
Delete leading whitespace (spaces/tabs/etc) from beginning of each line
ruby -pe 'gsub(/^\s+/, "")' < file.txt
Double space a file with Ruby using the command
ruby -pe 'puts' < file.txt
Show list of files provided by a rpm package installed
rpm -ql package_name
Command to push the current repository in git to a online server
git push