Command Line Flashcards

1
Q

> &&raquo_space;

A

makes/overwrites file for output vs. appends output if file exists

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

man

A

read a manual page

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

grep

A

find things inside files

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

|

A

output of command on LEFT as input to command on RIGHT

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

export

A

export/set a new environment variable

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

echo

A

print some arguments

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

env

A

look at your environment

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

apropos

A

find what man page is appropriate (search though man pages)

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

find

A

find files (find STARTDIR -name WILDCARD -print)

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

cat

A

print whole file to standard output

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

pwd

A

print working directory

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

hostname

A

my computer’s working name

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

mkdir

A

make directory

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

cd

A

change directory

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

ls

A

list directory (contents)

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

rmdir

A

remove directory

17
Q

pushd

A

push directory

18
Q

popd

A

pop directory

19
Q

cp

A

copy a file or directory

20
Q

mv

A

move (rename) a file or directory

21
Q

less

A

page through a file

22
Q

xargs

A

execute arguments

23
Q

sudo

A

!DANGER! become a super user root !DANGER!

24
Q

exit

A

exit the shell

25
Q

chmod

A

change permission modifiers

26
Q

chown

A

change ownership

27
Q

sort

A

sort contents

28
Q

head

A

first line(s) of a file, where default is 10

29
Q

tail

A

last line(s) of a file, where default is 10

30
Q

wc

A

word count

31
Q

touch

A

create empty file