Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // commands
- ssh username1@fray1.fit.cvut.cz
- passwd - change password
- %n - new line
- date +"Dnes je %A, %d.%m.%G (%W. tyden).%nPrave je %T [%Z]"
- mdkir name{from..to} - create n of dirs with dynamic name
- scp source server:dest
- sleep 5 - wait for 5s
- // vypise neco, vybere x,y bunky, seradi cisla, posledni cislo zvetsi o 1
- // pipeline with 4 commands
- getent passwd | cut -d: -f3 | sort -n | tail -n 1
- touch - create new file
- ls -ld *d* - files names with "d"
- less - open a file
- ls > soubor -
- // cm1 probehne na vzdalenem serveru, cm2 a cm3 probehne na lokalnim pc
- ssh server cm1; cm2, cm3
- // vsechno se provede na vzdalenem serveru
- ssh server 'cm1, cm2, cm3'
- printf 'abc\n'
- // prikaz printf probehne vzdalene
- ssh server "printf 'abc\n'"
- // global variables
- $PATH
- $USER
- // spusteni externiho scriptu
- bash path/to/file
- // variables - without spaces
- name=value
- // ask
- alias rm='rm -i'
- // shortcuts
- Ctrl + A - Home
- Ctrl + E - End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement