Top 15 Linux Commands Flashcards

1
Q

What is Linux command cd?

A

Change directory allows you to navigate to another directory.

Example: cd downloads
Example: cd /etc/
Example: cd .. (Directory up!)

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

What is Linux command man?

A

Shows the users the manual of the command. In case you need to get more information about the command.

Example: man cp
Note: to close the manual simply press “Q”

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

What is Linux command ls?

A

ls lists the files/directories within a directory

Example: ls

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

What is Linux command cp?

A

The command command is available for us to copy things. Useful for duplicating files.

Example: cp file file2

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

What is Linux command mv?

A

mv command is used for move operations, allows users to move a file/directory to a specified location.

Example: mv /home/bas/Desktop/bla /home/bas/desktop/fiets

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

What is Linux command mkdir

A

This command is used to make directories, not files.

Example: mkdir testdirectory

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

What is Linux command rmdir?

A

rmdir is used to remove directories.

Example: rmdir fiets

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

What is Linux command touch?

A

Touch command is used to make files.

Example: touch Vogel

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

What is Linux command rm?

A

This command is used to delete files instead of directories.

Example: rm Vogel

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

What is Linux command tar?

A

Tar is used to archive files, a way to pack a bunch of files into a single file.

Example: tar -Cvf test.tar test (creating a tar file from directory or file test)

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

What is Linux command pwd?

A

Pwd stands for path working directory, shows you where you are in the system.

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

What is Linux command ifconfig?

A

Ifconfig is a command showing you information about the ethernet adapters on your system. It contains very useful information like gateway, ip, and packet statistics.

Example: ifconfig

Note: to gain information about the wireless adapters on your system type iwconfig.

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

What is Linux command locate?

A

Locate is an extremely fast searching command. It shows the directories or files each on a new line.

Example: locate syslog

Example: locate syslog | more (piping structure used to invert the data from locate to the more command)

Note: some keywords returns enormous amounts of hits. Use MORE to (see example) clear things up a bit.

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

What is Linux command ping?

A

Ping is used as a network diagnostic command by professionals. Ping offers info about the network we are on and if the other system responds to us. In cases of troubleshooting network related problems, ping can do a great job to determine the domain of the problem.

Example: ping www.google.com
Command returns the interval and % of loss during the test.

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

What is Linux command chmod?

A

Chmod command comes from “Change Mode” back to the unix times. It’s a great command to restrict access to directories or files. But before I show you an example on how to use it, some theory.

Chmod is quiet an advanced command to use. So therefore you really need to understand how it works. chmod works with so called permission bits. These bits can be set to a certain level of restrictions.

7 full
6 read and write
5 read and execute
4 read only
3 write and execute
2 write only
1 execute only
0 none

Source: http://en.wimipedia.org/wiki/Chmod

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

What is Linux command Sudo?

A

Linux, Sudo,