Commands Flashcards
(46 cards)
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
5
Q
Push directory
A
pushd
6
Q
Remove directory
A
rmdir
8
Q
Pop directory
A
popd
9
Q
Copy a file or directory
A
cp
10
Q
Move file or directory
A
mv
11
Q
Page through files
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 manual page
A
man
17
Q
Find what 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 new environment variable
A
export
21
Q
Exit shell
A
exit
22
Q
Become super user root
A
sudo
23
Q
sudo
A
Become super user root
24
Q
exit
A
Exit shell
25
export
Export/set new environment variable
26
echo
Print some arguments
27
env
Look at your environment
28
apropos
Find what man page is appropriate
29
man
Read manual page
30
grep
Find things inside files
31
find
Find files
32
xargs
Execute arguments
33
cat
Print the whole file
34
less
Page through files
35
mv
Move file or directory
36
cp
Copy a file or directory
37
popd
Pop directory
38
pushd
Push directory
39
rmdir
Remove directory
40
ls
List directory
41
cd
Change directory
42
mkdir
Make directory
43
hostname
My computer's network name
44
pwd
Print working directory
45
How would you find differences between 2 files using the command lines?
diff -u file1.html file2.html
46
Who would you reset bash after setting an ENV variable
source ~/.bash_profile