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
history
lists all the commands you have used
26
ps | awk '{print $4}'
pipes the process command into awk then prints the 4th column of the results
27
set
read and write variables
28
chmod
change access permissions of a file
29
cat /proc/meminfo
displays memory usage in detail
30
which
displays which executable is being run for your command
31
touch
creates a file
32
ln
creates a symbolic link (-s) or a hard link
33
rm
removes file or directory
34
dd
converts and copies a file, disk copy
35
od
dumps files in octal and other formats
36
more
displays more of a file
37
man
manual pages
38
whoami
displays current user
39
dd if=/dev/zero of=/tmp/mynull count=1
dd command. copies the contents of device "zero" out to the file "mynull" in the /tmp directory.
40
find
search for files in a directory hierarchy
41
wc
print the number of bytes, words, and lines in files
42
xargs
build and execute command lines from standard input