Command Line Flashcards
1
Q
print working directory
A
pwd
2
Q
my computer’s network name
A
hostname
3
Q
make directory
A
mkdir
4
Q
change directory
A
cd
5
Q
list directory
A
ls
6
Q
remove directory
A
rmdir
7
Q
push directory
A
pushd
8
Q
pop directory
A
popd
9
Q
copy a file or directory
A
cp
10
Q
move a file or directory
A
mv
11
Q
page through a file
A
less
12
Q
print the whole file
A
cat
13
Q
execute arguments
A
xargs
14
Q
find files
A
find
15
Q
find things inside files
A
grep
16
Q
read a manual page
A
man
17
Q
find which man page is appropriate
A
apropos
18
Q
look at your environment
A
env
19
Q
print some arguments
A
echo
20
Q
export/set a new environment variable
A
export
21
Q
exit the shell
A
exit
22
Q
DANGER! Become super user root DANGER!
A
sudo
23
Q
go up one/multiple directory
A
.. or ../..