what is ls used for Flashcards

(27 cards)

1
Q

What does the command ‘ls’ do in Linux?

A

It lists the files and directories in the current directory.

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

True or False: The ‘chmod’ command is used to change file permissions.

A

True

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

Fill in the blank: The home directory for the root user is located at _____.

A

/root

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

Which command is used to display the current working directory?

A

pwd

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

What does ‘grep’ stand for?

A

Global Regular Expression Print

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

What is the purpose of the ‘mv’ command?

A

It is used to move or rename files and directories.

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

True or False: In Linux, everything is treated as a file.

A

True

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

What symbol is used to represent the home directory in Linux?

A

~

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

Which command would you use to create a new directory?

A

mkdir

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

What does the ‘rm’ command do?

A

It removes files or directories.

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

Fill in the blank: The default text editor in many Linux distributions is ___.

A

nano

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

Which 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
13
Q

What does the ‘man’ command do?

A

It displays the manual pages for other commands.

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

True or False: The ‘sudo’ command allows a permitted user to run a command as the superuser.

A

True

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

What is a shell in the context of Linux?

A

A shell is a command-line interface that allows users to interact with the operating system.

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

Which command is used to view the contents of a text file?

17
Q

Fill in the blank: The Linux kernel is responsible for managing _____.

A

hardware resources

18
Q

What does ‘tar’ stand for in the context of Linux?

19
Q

Which command can be used to check disk usage?

20
Q

True or False: The ‘ps’ command is used to display information about running processes.

21
Q

What is the purpose of the ‘echo’ command?

A

It displays a line of text or a variable value.

22
Q

What does the ‘ifconfig’ command do?

A

It displays or configures network interface parameters.

23
Q

Which command would you use to search for a specific pattern in files?

24
Q

Fill in the blank: The file system structure in Linux is organized in a _____.

A

tree hierarchy

25
What does 'sudo apt-get update' do?
It updates the package index on Debian-based systems.
26
True or False: Linux is an open-source operating system.
True
27
What is a process in Linux?
A process is an instance of a running program.