Tag: filler

top in Batch Mode

Run top in batch mode top -b -d 10 -n 3

Trasfer over the network

Transfer stdin and stdout to and from machines over the network ssh remote_machine ‘cat – > file’ < file

Use ffmpeg to create a screencast

You can use this command to create a screencast using ffmpeg. ffmpeg -f x11grab -s 800×600 -i :0.0 /tmp/screencast.mpg

Move files from Folder 2 Levels Deep

Use this command to move files from folders two level deep to the current folder… mv */*.* .

Post a new Task to Nexty

This is the command used to post a new task to the nexty GTD tool. curl –basic –user “binnyva:password” –cookie-jar…

Show Packages from a Group

Show rpm packages of a group software rpm -qg “System Environment/Daemons”

Delete Leading Whitespace

Delete leading whitespace (spaces/tabs/etc) from beginning of each line ruby -pe ‘gsub(/^\s+/, “”)’ < file.txt

Double space a file using Ruby

Double space a file with Ruby using the command ruby -pe ‘puts’ < file.txt

List Files Provided by Package

Show list of files provided by a rpm package installed rpm -ql package_name

git push

Command to push the current repository in git to a online server git push