techbootcamp

 

Unix command cheatsheet

Page history last edited by Connie-Lynne 2 yrs ago

 

ls -l, -a

pwd

cd

 

whoami

passwd

 

man

 

cat

less

more: spacebar, /, ?, G

 

$PATH

setenv

   in bash: export VARNAME=val

 

/

/bin

/sbin

/usr

/home

(sometimes a command needs full path)

$HOME

$PATH

 

cp

mv

rsync -e ssh -avz

 

|

>

>>

man <shell>

echo

alias

 

Ctrl-C

Ctrl-Z

Ctrl-U

tab completion

fg

 

jobs

ps ((-)awfx)

kill (-9)

bg

 

grep -v -i -H

find

 - mention xargs

 

uname (note SEE ALSO on manpage)

* as a wildcard

a couple words about regular expressions - ., s, \, "" vs '''

 

chown

chmod

     777 vs a+x

recursion in commands

 

history

arrows

 

vi: insert mode, ZZ, :q!, dd, x, y, p, hjkl

emacs

  -M-x help

.login

.bashrc/.cshrc/whateverz

.forward 

    clynne, clynne@wherever.com

 

rpm -q

make

sudo

visudo

 

ifconfig

mailq

useradd/adduser

groups

 

Fun stuff:

cal (dotfiles -- .mailrc. .caldat, etc)

dict

calc

fortune

figlet

nethack

wget

 

Exercises:

   ssh in using a terminal emulator

   check your email

   use file redirection to set up a .forward file that sends your email to your primary email account

   use a pager to look at your .forward file, then test it.

   use file redirection to add another address to your .forward file, then look at it and test it

   use vi to edit your .forward file

   look at the history of commands you've typed

   grep your command history for particular commands

 

 

Comments (0)

You don't have permission to comment on this page.