LX1 Flashcards

1
Q

Which of the following can be used to access the command line?
BIOS
Terminal
XWindow
Firefox
Xargs

A
  • Terminal

Terminal is the correct answer because it is a command line interface that allows users to interact with the operating system by typing commands. It provides a text-based environment where users can execute commands, run scripts, and navigate through directories. Unlike graphical user interfaces like XWindow or Firefox, the terminal provides direct access to the command line, making it a powerful tool for advanced users and system administrators. BIOS and Xargs are not used to access the command line, as BIOS is responsible for booting the computer and Xargs is a command used to build and execute command lines from standard input.

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

Which of the following commands can be used to create a file?
Touch
Build
Nico
Create
Mkfile

A
  • Touch

The correct answer is touch. The touch command is commonly used in Unix and Linux operating systems to create an empty file. It can also be used to update the access and modification timestamps of an existing file. The other options, build, nico, create, and mkfile, are not valid commands for creating a file.

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

What is the number called that is used to identify a process?
Proc Num
PIN
Process Entry
PID

A
  • PID

The number used to identify a process is called PID, which stands for Process ID. A PID is a unique numerical identifier assigned to each running process in a computer system. It allows the operating system to keep track of and manage different processes effectively. By using PIDs, the operating system can identify and control individual processes, allocate system resources, and handle process-related activities such as scheduling, termination, and communication.

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

Which function does a shell program serve?
It provides a graphical environment
It is responsible for establishing a connection to another computer
It receives user commands and executes them
It is responsible for logging a user into the system

A
  • It receives user commands and executes them

A shell program serves the function of receiving user commands and executing them. It acts as an interface between the user and the operating system, allowing users to interact with the computer by entering commands. The shell program interprets these commands and executes them, performing various tasks such as running programs, managing files, and controlling system resources. It provides a command-line interface where users can enter commands and receive output or perform actions based on those commands.

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

Which of the following is a Linux-based operating system for use on mobile devices?
IOS
CentOS
Android
Debian

A
  • Android

Android is a Linux-based operating system for use on mobile devices. It was developed by Google and is widely used on smartphones, tablets, and other mobile devices. Android provides a user-friendly interface, supports a wide range of applications, and allows for customization and flexibility. It is known for its open-source nature, which allows developers to modify and enhance the operating system according to their needs.

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

Which Linux distribution is used as a basis for the creation of Ubuntu Linux?
Red Hat Linux
Arch Linux
SUSE Linux
Gentoo Linux
Debian Linux

A
  • Debian Linux

Ubuntu Linux is based on Debian Linux, a popular and stable Linux distribution known for its extensive software repositories and strong community support. Ubuntu builds upon Debian’s foundation, adding its own user-friendly interface, software packages, and release cycle. This relationship allows Ubuntu to benefit from Debian’s stability and security while providing a more accessible and streamlined experience for users.

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

Where is the BIOS located?
RAM
Hard drive
Motherboard
LCD Monitor

A
  • Motherboard

The BIOS (Basic Input/Output System) is located on the motherboard. It is a firmware that is responsible for initializing and configuring the hardware components of a computer during the boot process. The BIOS contains instructions and settings that allow the computer to start up and communicate with the operating system. It is stored in a chip on the motherboard, separate from other components like RAM, hard drive, or the LCD monitor.

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

Which command would you use to get comprehensive documentation about any command in Linux?
Help command
Echo command
Locate command
Man command
Get command

A
  • Man command

The “man” command is used to get comprehensive documentation about any command in Linux. It displays the manual pages for the specified command, providing detailed information on its usage, options, and examples. This is a commonly used command by Linux users to quickly access documentation and understand how to use various commands effectively.

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

Which of the following commands can be used to extract files from an archive?
Tar -vf
Tar -xvf
Tar -evf
Tar -e
Tar -v

A
  • Tar -xvf

The correct answer is “tar -xvf” because the “-x” option is used to extract files from an archive, the “-v” option is used to display verbose output, and the “-f” option is used to specify the archive file. Therefore, “tar -xvf” is the correct command to extract files from an archive.

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

Which of the following commands can be used to extract content from a tar file?
Tar -xvf
Tar -vf
Tar -e
Tar -c
Tar -v

A
  • Tar -xvf

The command “tar -xvf” can be used to extract content from a tar file. The “x” flag stands for extract, the “v” flag stands for verbose (displaying the progress and details of the extraction), and the “f” flag is used to specify the file name. This command will extract the contents of the tar file to the current directory.

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

Which of the following is NOT a core component of the Linux operating system kernel?
System call interface
Process scheduler
Memory management
Graphical user interface (GUI)

A
  • Graphical user interface (GUI)

While a GUI is often part of a Linux distribution, it’s not part of the kernel itself. The kernel handles fundamental tasks like managing the system’s resources, scheduling processes, and providing an interface for programs to interact with the hardware. GUIs like GNOME or KDE are separate software components that run on top of the kernel.

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

Which of the following is a combined audio/video interface for the transmission of digital data?
ATI
DVD
HDMI
VGA
DVI

A
  • HDMI

HDMI (High-Definition Multimedia Interface) is a combined audio/video interface for the transmission of digital data. It is widely used in consumer electronics such as televisions, computers, and gaming consoles to connect devices and transmit high-quality audio and video signals. HDMI supports both audio and video signals in a single cable, making it convenient and efficient for transmitting digital data.

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

Which of the following hardware devices links a number of computers together to form an Ethernet LAN?
Server
Switch
Connector
Access point
Terminal

A
  • Switch

A switch is a hardware device that is used to connect multiple computers together to form an Ethernet LAN. It acts as a central hub, allowing the computers to communicate with each other by sending and receiving data packets. Switches are commonly used in both small and large networks to provide efficient and reliable connectivity. They are designed to handle high data traffic and can intelligently route data to the appropriate destination, improving network performance. Therefore, a switch is the correct hardware device for linking computers together in an Ethernet LAN.

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

When a new user is added, where does the user ID get stored?
/etc/users
/etc/realm
/etc/pass
/etc/shpasswd
/etc/passwd

A
  • /etc/passwd

The user ID of a new user is stored in the /etc/passwd file. This file is a system file that contains information about user accounts, including their usernames, user IDs, group IDs, home directories, and login shells. The /etc/passwd file is used by the system for user authentication and to determine various permissions and settings for each user.

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

Which of the following commands will display a list of all files in the current directory, including those that may be hidden?
Ls -a
Ls –hidden
Ls -h
Ls –a

A
  • Ls -a

The correct answer is “ls -a”. The “-a” option in the “ls” command stands for “all” and it displays all files, including hidden files, in the current directory.

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

What are the three sets of permission for a file?
User, group, others
Administrator, group, others
User, standard user, others
Administrator, standard user, others

A
  • User, group, others

The three sets of permission for a file are user, group, and others. These permissions determine who can read, write, or execute the file. The user permissions apply to the owner of the file, the group permissions apply to the group that the owner belongs to, and the others permissions apply to everyone else. This system allows for fine-grained control over file access and ensures that only authorized individuals or groups can interact with the file.

17
Q

Which command will display running process information in realtime?
Top
Show current
Ps current
Process

A
  • Top

The correct answer is “top”. The “top” command is used to display real-time information about running processes on a system. It provides a dynamic view of the system’s processes, including details such as CPU usage, memory usage, and process IDs. By continuously updating the information, “top” allows users to monitor the system’s performance and identify any processes that may be consuming excessive resources.

18
Q

Which of the following commands is used to lookup the current IP address of a system?
Less/proc/net/ipconfig
Ifconfig
Showip
Ipconfig
Sysinfo | grep ipaddress

A
  • Ifconfig

The correct answer is “ifconfig”. This command is used to lookup the current IP address of a system. It displays the network configuration information of all network interfaces on the system, including the IP address assigned to each interface.

19
Q

What is the first character for a file or directory names if they should not be displayed by commands such as ls unless specifically requested?
\ (backslash)
. (dot)
- (minus)
_ (underscore)

A
  • . (dot)

In Unix-based systems, the dot (.) is used as the first character for file or directory names that should not be displayed by commands like ls unless specifically requested. This convention is commonly used for hidden files or directories, which typically contain configuration files or sensitive data that should not be easily accessible or accidentally modified. By starting the name with a dot, the file or directory is effectively “hidden” from regular directory listings, providing a level of privacy or organization.

20
Q

Which command lists all files in the current directory that starts with a capital letter?
Ls [A-Z]*
Ls A-Z
Ls A-Z*
Ls –upercasefiles
Ls -uppercase-files

A
  • Ls [A-Z]*

The correct answer is “ls [A-Z]”. This command uses the wildcard character “” to match any file that starts with a capital letter in the current directory. The “[A-Z]” specifies that the file must start with a capital letter, and the “*” allows for any additional characters after the capital letter.