Commands Flashcards

(46 cards)

1
Q

Print working directory

A

pwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

My computer’s network name

A

hostname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Make directory

A

mkdir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Change directory

A

cd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

List directory

A

ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Push directory

A

pushd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Remove directory

A

rmdir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Pop directory

A

popd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Copy a file or directory

A

cp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Move file or directory

A

mv

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Page through files

A

less

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Print the whole file

A

cat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Execute arguments

A

xargs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Find files

A

find

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Find things inside files

A

grep

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Read manual page

A

man

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Find what man page is appropriate

A

apropos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Look at your environment

A

env

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Print some arguments

20
Q

Export/set new environment variable

21
Q

Exit shell

22
Q

Become super user root

23
Q

sudo

A

Become super user root

24
Q

exit

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