#---------------------------------------------------------------------------- shutdown -h now == /sbin/halt shutdown -r now == /sbin/reboot ^\ - kill current process chsh -l = List allowed shells (/etc/shells) chsh -s shellname = Change login shell for user (such as pdksh) Shift-ScrollLock = Memory info Shift-Pgup or Shift-PgDn= Scroll back and forth in console echo $[] = (Literal) Command-line Calculator open -c 5 -- su dave -c top = Open virtual console 5, user Dave, exec TOP reset == Reset terminal display || stty sane ^J (don't hit Enter) cat /dev/fd0 > = Grab floppy to an image-file nice == Run program in BG (Batch); can also set priority renice == Adjust process priority renice +1 ' == Lower priority of pid renice +1 -u spoogeboy ' == Lower priority of all processes owned by user renice +1 -u spoogeboy -p -u goovbol -p ' == Alternate between usernames and pids #---------------------------------------------------------------------------- history [n] == Display last n commands + ' redo ' == Redo last command containing 'string' + ' !! ' == re-DO last command + ' ! ' == DO command # (number from History list) + Example: + ' !512 ' == Re-DO command #512 #---------------------------------------------------------------------------- pushd == Remember this dir, I may want to POPD back to it later (bash) popd == Go back to the last pushd (bash) dirs == Print list of remembered PUSHD dirs (Bash) #---------------------------------------------------------------------------- s 4 Set user ID (SUID; usually root) on execution s 2 Set group ID on execution t 1 Set sticky bit #---------------------------------------------------------------------------- lsmod == List loaded kernel modules (ROOT) + insmod ppa == Insert module 'ppa' into kernel + rmmod == Remove loaded module dynamically + modprobe + depmod -a == Resolve module dependencies #---------------------------------------------------------------------------- Xwin Ctrl-Alt-'+' == Next higher resolution Ctrl-Alt-'-' Ctrl-Alt-Bkspc == Emergency Exit #---------------------------------------------------------------------------- A simple way to create the special programs is to write `tail scripts': #!/usr/bin/tail +2 This account has been closed due to a security breach. Please call 555-1234 and wait for the men in black to arrive.