Useful Commands

From RedBrick Wiki
Jump to: navigation, search

So, Sonic suggested a list of useful commands

393 2009-10-22 16:55:58     @sonic  What would ye all think about making up some cheatsheets or perhaps getting people such as   johan/atlas/lil_cain/andrew/haus/myself to make one up or suggest entries
394 2009-10-22 16:56:20     andrew  sounds like a wiki project
395 2009-10-22 16:56:38     andrew  start something with each talk
396 2009-10-22 16:56:44     andrew  then let people contribute etc.
397 2009-10-22 16:56:49     lil_cain        Define cheatsheet?
398 2009-10-22 16:59:06     haus    old topic is old
399 2009-10-22 17:01:09     --      lil_cain has unset topic for #rbTraineeAdmins 
400 2009-10-22 17:01:54     @sonic  lil_cain: similar to what you posted a few days ago in here
401 2009-10-22 17:02:05     @sonic  most popular commands/switches, what they do

So, I'm adding it

Useful Mail Stuff

mutt -Z :-: Opens mutt, with a folder with new mail open

mutt -y :-: Opens mutt, with folders

mutt -s <subject> <email address> :-: pipe/redirect stuff to this to send email

Useful Bash Stuff

mesg n  :-: sets your tty permissions to -w All. Useful to stop people dumping stuff on your terminal

vim  :-: The coolest text editor ever

type  :-: This is a bash builtin (I think) that tells you what you're running (where it is, whether it's a builtin, or whatever). I prefer it to which, since its A: always there, and B:knows more about your aliases and stuff

write  :-: like hey, but nor formatting

who  :-: gives you a list of logged in users. Useful for playing with when your scripting

last  :-: gives you a list of the users who *have* logged in. On RB, its in the last month

wget  :-: downloads websites

man -k  :-: is a synonym for apropos, but easier to spell. Searches for manpages, based on some kind of meta data