Gives a summary of the disk usage for the specified directory.
import -window root filename.png
Take a screenshot of the screen in linux from the command line. (non-interactive)
netstat -a | grep -c "EST"
Total number of established connections
/usr/ucb/ps auxww [PID]
(Solaris) Shows further process details about a given PID.
prstat -a
Like Taskmgr in windows and Top in Linux. Shows processes in a dynamic list
chmod -R <PERMISSION> *
Recursive CHMOD. Changes all the permissions in current directory and sub-directories with what is set in <PERMISSION>, recursivly. (You can replace * with other wildcards)
echo $shell / echo $0
Shows the current shell being used (i.e: What shell am I currently using: answer = $shell/$0)
ps -eo pid,pcpu,vsz,args | grep "<search term>"
Gives an output of CPU time and memory usage for a process running on the system.
which <command>
Which tells you where a command is being ran from
history 10 > ~/scripts/lastTen.commands
Puts the last ten commands into a text file
watch -n 600 import -window root ~/screenshot.jpg
Prints a screenshot into the users home directory every (600 seconds) 10 minutes
du -hs ~/*
Shows the disk usage of your home dir as a summary in a human readable format