Common Linux Command Flashcards
report a snapshot of the current processes.
ps command
locate a command
which command
- look in the directories listed in the users’ search path for the required file
determine file type
file command
- find out more about the kind of data
print lines that match patterns
grep command
eg
grep -rnw ‘/path/to/somewhere/’ -e ‘pattern’
(find all files containing specific text on Linux)
print real and effective user and group IDs
id command
search for files in a directory hierarchy
find command
format:
find -name
eg.
find / -iname “bash*”
output the first part of files
head command
eg.
head -10 bash.bashrc
change file mode bits
chmod command
output the last part of files
tail command
eg
tail -10 bash.bashrc
PS.
-f(–follow) is often used by system administrators to file respectively
send a signal to a process
kill command
an archiving utility
tar command
list directory contents
ls command
eg.
ls -a
ls -a
ls -latr
OpenPGP encryption and signing tool
gpg command
display a tree of processes
pstree command