Command Line Flashcards
(30 cards)
0
Q
Whats is another term for my computer’s network name?
A
Hostname
1
Q
pwd
A
Print working directory
2
Q
mkdir
A
Make directory
3
Q
cd
A
Change directory
4
Q
Ls
A
List directory
5
Q
rmdir
A
Remove directory
6
Q
pushd
A
Push directory
7
Q
popd
A
Pop directory
8
Q
cp
A
Copy a file or directory
9
Q
mv
A
Move a file or directory/renaming them
10
Q
less
A
Page through a file
11
Q
cat
A
Print the whole file
12
Q
xargs
A
Execute arguments
13
Q
find
A
Find files.
find -STARTDIR -name WILDCARD -print
14
Q
grep
A
Find things inside files
15
Q
man
A
Read a manual page
16
Q
apropos
A
Find what man page is appropriate.
17
Q
env
A
Look at your environment.
18
Q
echo
A
Print some arguments.
19
Q
export
A
Export/set a new environment variable.
20
Q
exit
A
Exit the shell.
21
Q
sudo
A
DANGER! Become super user root DANGER!
22
Q
chmod
A
Change permission modifiers.
23
Q
chown
A
Change ownership
24
touch
Creates a new file
25
$|$
The | takes the output from the command on the left and "pipes" it to the command on the right.
26
$<$
The < will take and send the input from the file on the right to the program on the left.
27
$>$
The > takes the output of the command on the left then writes it to the file on the right.
28
$>>$
The >> takes the output of the command on the left then appends it to the file on the right.
29
*
Matches anything in a wildcard like *.txt