Midterm Commands Flashcards

1
Q

ls

A

List contents of a directory

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

ls -al

A

List all contents of a directory, long style

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

ls -alR

A

List all directory contents recursively

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

pwd

A

Lists the present working directory

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

cd

A

changes directory

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

mkdir

A

makes a directory

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

date

A

lists current date, time, and timezone

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

echo $PATH

A

Prints to screen the path environment variable

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

su

A

substitute user, super user, or switch user

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

cat

A

displays a file on screen

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

source

A

Evaluates a file or resource as a TCL script

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

PATH

A

settings to change the environment variable PATH

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

PS1

A

used in scripts to change a multitude of settings

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

script

A

collection of commands stored in a file

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

cp

A

copy

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

ps

A

displays processes

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

top

A

displays processes in real time

18
Q

file

A

determines file type

19
Q

kill

A

kills a process

20
Q

df

A

reports how much free disk space is available for each mount you have

21
Q

grep

A

searches a file for your search term

22
Q

free

A

displays memory usage

23
Q

ifconfig

A

displays network information

24
Q

cal

A

calendar for the year you specify

25
Q

history

A

lists all the commands you have used

26
Q

ps | awk ‘{print $4}’

A

pipes the process command into awk then prints the 4th column of the results

27
Q

set

A

read and write variables

28
Q

chmod

A

change access permissions of a file

29
Q

cat /proc/meminfo

A

displays memory usage in detail

30
Q

which

A

displays which executable is being run for your command

31
Q

touch

A

creates a file

32
Q

ln

A

creates a symbolic link (-s) or a hard link

33
Q

rm

A

removes file or directory

34
Q

dd

A

converts and copies a file, disk copy

35
Q

od

A

dumps files in octal and other formats

36
Q

more

A

displays more of a file

37
Q

man

A

manual pages

38
Q

whoami

A

displays current user

39
Q

dd if=/dev/zero of=/tmp/mynull count=1

A

dd command. copies the contents of device “zero” out to the file “mynull” in the /tmp directory.

40
Q

find

A

search for files in a directory hierarchy

41
Q

wc

A

print the number of bytes, words, and lines in files

42
Q

xargs

A

build and execute command lines from standard input