Command Lines Flashcards

1
Q

hostname

A

my computer’s network name

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

mkdir

A

make directory

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

ls

A

list directory

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

cd

A

change directory

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

rmdir

A

remove directory

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

print working directory

A

pwd

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

my computer’s network name

A

hostname

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

Make directory

A

mkdir

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

change directory

A

cd

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

list directory

A

ls

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

remove directory

A

rmdir

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

pushd

A

push directory

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

push directory

A

pushd

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

popd

A

pop directory

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

pop directory

A

popd

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

cp

A

copy a file or directory

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

copy a file or directory

A

cp

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

mv

A

move a file or directory

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

move a file or directory

A

mv

20
Q

less

A

page through a file

21
Q

page through a file

A

less

22
Q

cat

A

print the whole file

23
Q

print the whole file

A

cat

24
Q

xargs

A

execute argument

25
Q

execute argument

A

xargs

26
Q

find

A

find files

27
Q

find files

A

find

28
Q

grep

A

find things inside files

29
Q

find things inside files

A

grep

30
Q

man

A

read a manual page

31
Q

read a manual page

A

man

32
Q

apropos

A

find what man page is appropriately

33
Q

find what man page is appropriate

A

apropos

34
Q

env

A

look at your environment

35
Q

look at your environment

A

env

36
Q

echo

A

print some arguments

you can use echo command to write and overwrite data to a file using command line in terminal

echo “hello you” test.txt
this will overwrite any existing data in file test.txt with text hello you.

37
Q

print some arguments

you can use this command to write and overwrite data to a file using command line in terminal

A

echo

echo “hello you” test.txt

this will overwrite any existing data in file test.txt with text hello you.

38
Q

export

A

export/ set a new environment variable

39
Q

export/ set a new environment variable

A

export

40
Q

exit

A

exit the shell

41
Q

exit the shell

A

exit

42
Q

sudo

A

DANGER! become super user root DANGER!

43
Q

chown

A

change file owner and group

44
Q

chmod

A

Change access permissions of files

45
Q

pwd

A

print work directory