Linux Flashcards
What does “cd ~ “ do?
Change directory to “Home”
What does the “history” command do?
Lists last 500 commands
bsh
Bourne SHell; outdated
bash
Bourne Again SHell; Updated bsh, most common default shell in Linux flavors
cp vs dd
cp=copy
dd=copy at bit level
rm
remove
grep
Search lines for a specified string
grep [options] [pattern] [file]
What does the /dev/zero file contain?
/dev/zero is a file with unlimited zeros.
RegEx: grep ‘.at’
Cat, Hat, Rat, etc.
. = Any single character
RegEx: grep ‘[CAT]at’
Cat, Aat, Tat
[ ] = Any specified character
RegEx: grep ‘^at’
At, ate
Not: Cat, hat
^ = Only when the string is at the beginning of a line
ifconfig vs iwconfig
iwconfig shows network configuration for wireless network interfaces only..
What is the TTY of a process?
The name of the terminal the process is running in.
What is a PID?
Process Identifier.
ps command
Displays all processes running in the terminal