Basic Commands Flashcards

1
Q

What command is used to list files and directories in Linux?

A

ls

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

True or False: The ‘cd’ command is used to change the current directory.

A

True

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

Fill in the blank: The command ‘______’ is used to copy files in Linux.

A

cp

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

What command would you use to remove a file in Linux?

A

rm

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

Which command is used to display the contents of a file?

A

cat

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

True or False: The ‘mv’ command can be used to rename files.

A

True

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

What does the ‘pwd’ command do?

A

Prints the current working directory.

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

Fill in the blank: The command ‘______’ is used to create a new directory.

A

mkdir

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

What command would you use to view the manual for another command?

A

man

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

True or False: The ‘touch’ command is used to create an empty file.

A

True

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

What is the purpose of the ‘chmod’ command?

A

To change the permissions of a file or directory.

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

Which command is used to move to the parent directory?

A

cd ..

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

Fill in the blank: The command ‘______’ is used to search for files in a directory hierarchy.

A

find

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

What command would you use to display the first 10 lines of a file?

A

head

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

True or False: The ‘tail’ command shows the last lines of a file.

A

True

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

What command is used to display system information?

17
Q

Which command is used to compress files?

18
Q

Fill in the blank: The command ‘______’ is used to change file ownership.

19
Q

What command would you use to display running processes?

20
Q

True or False: The ‘kill’ command is used to terminate processes.

21
Q

What does the ‘echo’ command do?

A

Displays a line of text or a variable value.

22
Q

Which command is used to display network configuration?

23
Q

Fill in the blank: The command ‘______’ is used to download files from the internet.

24
Q

What command is used to check disk usage?

25
Q

True or False: The ‘scp’ command is used for secure file transfer over SSH.

26
Q

Which command is used to display disk space usage of directories?

27
Q

Fill in the blank: The command ‘______’ is used to search for specific text within files.