UNIX/LINUX COMMANDS Flashcards

1
Q

ls

A

List.

It will display a list of all files in the current folder, or in the target folder if specified.
For example, “ls /record/finance/*.xls” would list all of the files that end in .XLS, within the
finance folder, inside of the record folder.

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

pwd

A

Print Working Directory.

It will show you what folder you are currently in.

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

cd

A

Change Directory.

This allows you to change to whatever directory you specify. (This also
works in Windows!)

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

cp

A

Copy.

This command copies a file. Proper syntax is “cp [file to be copied] [destination].”

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

mv

A

Move.
This command moves one or more files or directories from one location to another.
Proper syntax is mv [options] [source] [destination].

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

rm

A

Remove. This deletes the specified files or folders.

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

grep

A

A very versatile searching utility, Grep can search any plain-text data set for a specific
“regular expression” which is a fancy way of saying search for a predefined string of
characters. Syntax is grep [options] [pattern] [file name].
Example: grep “find_this_pattern” file123. This would display any line in document “file
123” that contained “find_this_pattern”.

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

passwd

A

Password.
This command is used to change a user’s password.

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

sudo

A

Superuser Do. This command would be put in front of any command that we want to
execute with superuser (elevated/restricted) privileges. Most systems will request a
password be entered and checked before proceeding.

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

chmod

A

Change Modes. This command is used to change the permissions on an object (file).

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

chown

A

Change Owner.

This command assigns a new owner to an object (file) and this includes
granting all of the permissions/privileges that would be associated with ownership.
Requires root permissions to use, so it should be proceeded by sudo.

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

ps

A

Processes.

Displays a list of all currently running process (programs/services) for the user.

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

kill

A

Sends a signal to a running process, to by default, terminate (close). However, kill can be
used to send other instructions if done properly!

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

ifconfig

A

Interface Configure.

Similar to ipconfig in Windows, it shows the current configuration of
the network interface card.

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

cat

A

Concatenate.

Reads a file and prints contents to the screen.

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

dig

A

Domain Information Groper.

Similar to nslookup in windows, it can be used to
communicate with a DNS server.