Terminal Commands Flashcards
(44 cards)
1
Q
pwd
A
print working directory
2
Q
hostname
A
my computer’s network name
3
Q
mkdir
A
make directory
4
Q
cd
A
change directory
5
Q
ls
A
list directory
6
Q
rmdir
A
remove directory
7
Q
pushd
A
push directory
8
Q
popd
A
pop directory
9
Q
cp
A
copy a file or directory
10
Q
mv
A
move a file or directory
11
Q
less
A
page through a file
12
Q
cat
A
print the whole file
13
Q
xargs
A
execute arguments
14
Q
find
A
find files
15
Q
grep
A
find things inside files
16
Q
man
A
read a manual page
17
Q
apropos
A
find which man page is appropriate
18
Q
env
A
look at your environment
19
Q
echo
A
print some arguments
20
Q
export
A
export/set a new environment variable
21
Q
exit
A
exit the shell
22
Q
sudo
A
DANGER! become super user root
23
Q
print working directory
A
pwd
24
Q
my computer’s network name
A
hostname
25
make directory
mkdir
26
change directory
cd
27
list directory
ls
28
remove directory
rmdir
29
push directory
pushd
30
pop directory
popd
31
copy a file or directory
cp
32
move a file or directory
mv
33
page through a file
less
34
print the whole file
cat
35
execute arguments
xargs
36
find files
find
37
find things inside files
grep
38
read a manual page
man
39
find which man page is appropriate
apropos
40
look at your environment
env
41
print some arguments
echo
42
export/set a new environment variable
export
43
exit the shell
exit
44
become super user root
sudo