Flashcards
Shell COmmand
Flashcards do conjunto (64)
- 1psdisplay currently active processes
- 2ps auxps a lot of detail
- 3kill pidkill process with pid 'pid'
- 4killall prockill all processes named proc
- 5bglists stopped/background jobs, resume stopped job in the background
- 6fgbring the most recent job foreground
- 7fg nbrings job n to foreground
- 8chmod octal filechange permission of file
4 - read (r)
2- write (w)
1 - execute (x)
order: owner/grp/world - 9tar cf file.tar filestar files into file.tar
- 10tar xf file.taruntar into current directory
- 11tar tf file.tarshow content of archive
- 12tar -ccreate archive
- 13tar -ttable of contents
- 14tar -xextract
- 15tar -fspecifies filename
- 16tar -zuse zip/gzip
- 17tar -jbzip2 compression
- 18tar -kdo not overwrite
- 19tar -Tfiles from file
- 20tar -xask for conf°
- 21tar -vverbose
- 22Ctrl + chalts current cmd
- 23Ctrl + zstops currents cmd
- 24fgresume stopped command in foreground
- 25bgresume stopped command in background
- 26Ctrl + dlog out of current session
- 27Ctrl + werases one word in current line
- 28Ctrl + uerases whole line
- 29Ctrl + rreverse lookup of previous commands
- 30!!repeat last command
- 31exitlogout of current session
- 32ssh user@hostconnect you to host at user
- 33ssh - p port user@hostconnect to host as user using port "port"
- 34ssh -D port user@hostconnect use bind port
- 35./configureexecute 'configure'
- 36makeexecute the current file
- 37make installinstall the current file
- 38ping hostping host 'host'
- 39whois domainget whois for a domain
- 40dig domainget dns for domain
- 41dig -x hostreverse lookup host
- 42wget filedownload file
- 43wget -c filedownload file
- 44wget -c filecontinue stopped download
- 45wget -r urlrecursively download files from url
- 46dateshow current date/time
- 47calshow this month's calendar
- 48uptimeshow uptime
- 49w displaywho is online
- 50whoamiwho are you logged in as
- 51unname -ashow kernel config
- 52cat /proc/cpuinfocpu info
- 53cat /proc/meminfomemory information
- 54man cmdshow man for cmd
- 55dfshow disk usage
- 56dushow directory space usage
- 57du-shhuman readable size in GB
- 58freeshow memory and swap usage
- 59whereis appshow possible locations of app
- 60which appshow which app will be run by default
- 61grep pattern filessearch for pattern in files
- 62grep -r pattern dirsearch recursively for pattern in dir
- 63cmd | grep patternsearch for pattern in the output of command
- 64locate filefind all instances of a file
Informações
- Descrição
- Process Management - File permissions - Compression - Shortcuts
- Criado por
- Fen Pin
- Visualizações
- 1
- Tags
- Avaliação