Linux Mastery Flashcards
open terminal
crtl + alt + t
close terminal
crtl + d
list of previous commands
history
short cut for rerunning commands from history
!
!!
the above does what
runs most recent command
clear history all together
history -c; history -w
short form options are
long form options are
one dash
two dash
what can be chainged, long form or short form dashed
short form dashed
the 3 sections of a command
command options inputs
search a manual
man -k
in the manual page [ ] brackets indicate
optional
in the manual page < > angle brackets indicate
mandatory
the pipe | is
either or
[this]…
The three dots indicate?
multiple options
4 types of commands
standard input
standard output
standard error
standard Data streams
cat > output.txt
will do what?
add text to a file named output.txt
cat > output.txt
will do what?
add text to a file without deleting text in output.txt
standard output uses what number
1
standard error uses what number
2
standard input uses what number
0
tty
tells where terminal is
How would you redirect the standard output of the ls command to a file called output.txt
ls > output.txt
-drwx
= file d = directory r = readable w= writeable x= execute
files or directories that begin with dots are
hidden