Linux commands Flashcards
What command is used to number lines in terminal output?
nl (number lines)
What command lets you rename files?
mv (move)
What command lets you delete files?
rm (remove)
What command lets you view file/directory permissions?
ls -l or ll
What character lets you run multiple commands on one line?
; semicolon
How do you feed the output of one command as the input of another?
use the pipe | symbol.
What command is used to search through directories?
find
How to search through all directories recursively?
find / -name. This starts at root.
what command lets you change passwords?
passwd {user}
What command lets you organize the terminal output?
sort
What characters let you funnel a commands output into a recording file?
> ,»_space;, 2>, 2», &>, &»
What is the command for finding regular expressions?
grep
What are some useful options for grep and what do they do?
-i : ignores case
-v : outputs lines without the regex.
-n : numbers the lines
-l
-o : print only the matching part of a line
-r : searches directories recursively.
top
ps
Lists all processes currently running.