Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 2

Keystroke

Action

CTRL-B

Move the cursor left

CTRL-F

Move the cursor right

CTRL-P

View the previous command (or


move the cursor up)

CTRL-N

View the next command (or move


the cursor down)

CTRL-A

Move the cursor to the beginning


of the line

CTRL-E

Move the cursor to the end of the


line

CTRL-W

Erase the preceding word

CTRL-U

Erase from cursor to beginning of


line

CTRL-K

Erase from cursor to end of line

CTRL-Y

Paste erased text (for example,


from CTRL-U)

ENVIRONMENT:
$$ - shell process id
COMMAND[SHELL BUILT-IN]:
passwd
chsh
ps
groups - show group membership
umask
gzip/gunzip
tar
bzip2/bunzip2
sudo
cut/join
awk/sed/grep
sort/uniq/fmt

lpr,lpq,lprm - LEARN TO SET UP PRINTER


string,file,dd,od
chvt - change foreground virtual terminal [Alt-FN; Ctrl-Alt-FN]
fdisk,parted
mke2fs,mkfs.(fs_type),sync,mount,umount,fsck,du,df
mkswap,swapon,free

SSH
=======
1. invoke ssh -vv user@server
1a. client version is display
1b. client configuration file is read
1c. connection is establish (accepted by server)
1d. server announces is version number and protocol
1e. client tries to match from list of known problems and send a string in similar
format
1f. both sides send supported encryption algorithms, client selects one
1g. both sides send supported hash algorithms, client selects one
1h. (optional) compression method is seleted - defaults to 'none'
1i. key exchange - client picks an algorithm from the ones advertise by server.
The server sends an (short lasting) key for the exchange and the client accepts it. The
Server also sends the server key which the client verifies with its known_hosts file.
1j.

You might also like