Udemy Linux Flashcards
(56 cards)
Open Terminal
Ctrl + Alt + D
Close Terminal
Ctrl + D
echo
Prints out what you give it
cal
Calendar
date
today’s date & time
clear
clear screen
history
all previous commands
to run command in history
! + line #
!!
run most recent command
history -c; history -w
clears history and makes changes permanent
exit
terminal closes
echo $PATH
current path
which
which folder a command is in
operand
input
man
man pages
man “-k” “which”
man page ; search ; for term “which” –> man (section number) “result title”
>
standard output; #1; also 1>; will truncate
> >
output; append file
tty
see path of terminal
<
standard INPUT
cut
cuts files and returns specific columns (“fields”); –delimiter –> give it what divides the columns; –fields –> how many to output
|
pipe data from standard input to next command for standard input
tee
causes data to flow in two directions; saves to file as directed; allows file to be saved to continue piping
xargs
(not all commands accept standard input, some only accept command line arguments) converts data from standard input and puts it into command line argument; can use command | xargs; command such as “echo”; command such as “cat” | xargs “rm”