Missed Questions Flashcards

(44 cards)

1
Q

Where is the BIOS located?

Motherboard
RAM
Hard Drive
LCD Monitor

A

Motherboard

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 extract files from an archive?

Tar -e
Tar -v
Tar -xvf
Tar -vf
Tar -evf

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
3
Q

Which of the following commands can be used to extract content from a tar file?

Tar -e

Tar -c

Tar -v

Tar -xvf

Tar -vf

A

Tar -xvf

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

When a new user is added, where does the user ID get stored?

/etc/shpasswd

/etc/pass

/etc/passwd

/etc/users

/etc/realm

A

/etc/passwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
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

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

Which command will display running process information in realtime?

Show current

Ps current

Process

Top

A

Top

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

Which statement about users and user groups is correct?

Every user belongs at least to one user group

Users do not have to belong to a user group

There can be only one user group on a system

A group can only have one main user

A

Every user belongs at least to one user group

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

What is the command that will show system boot time messages?

Echo

Display system boot

Lspci

Dmesg

Messages

A

Dmesg

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

Which command will display the last line of the file foo.txt?

Tail foo.txt

Head -n foo.txt

Tail -n 1 foo.txt

Last -n 1 foo.txt

A

Tail -n 1 foo.txt

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

How is it possible to determine if an executable file is a shell script that is ready by Bash?

Scripts are never executable files

The file line starts with #!/bin/bash

The file must end with .sh

/bin/bash has to be run in debug mode

The r bit is set

A

The file line starts with #!/bin/bash

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

Which of the following directories is often used to store log files?

/home

/usr

/var

/dev

/temp

A

/var

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

Which of the following programs is not a graphical web browser?

Konqueror

Chrome

Firefox

Opera

Links

A

Konqueror

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

What does LAMP mean?

Short for lamport-clock which is important in distributed network computing

The combination of Linux, Apache, MySQL, and PHP and other programming languages

The Linux Advanced Mode Programming Interface which gives advanced capabilities to application developers

Short for Lightweight Access Management Protocol which synchronizes permission in a network

The bus ID of an attached USB device that emits light

A

The combination of Linux, Apache, MySQL, and PHP and other programming languages

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

Which command shows if /usr/bin is in the current shell search path?

Cat %PATH

Echo$PATH

Echo %PATH%

Cat PATH

A

Echo $PATH

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

Which permissions should be given to a file that needs to be opened and edited by the file’s owner and opened read-only by the file’s group?

0466

0751

0540

0444

0640

A

0640

The correct answer is 0640. This permission code indicates that the file’s owner has read and write permissions (6), while the file’s group has only read permissions (4). The other digits in the code represent the permissions for other users, which in this case are set to 0, meaning no permissions. This configuration ensures that the file can be opened and edited by the owner, while the group members can only open it in read-only mode.

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

Which option will cause the echo command NOT to output a trailing newline?

-n

-e

-s

-p

A

-n

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

What permissions are set on a file with the command chmod 654 file.txt?

-rw-r-xr–

–wxr-x–x

Drw-r-xr–

D–wxr-x–

-rwxrw–x

A

-rw-r-xr–

The first character indicates the file type (in this case, it’s a regular file). The next three characters “rw-“ specify the permissions for the file owner (read and write, but not execute).

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

Which of the following Ubuntu releases is considered most stable and fit to use for business purposes?

Ubuntu Vanilla

Xubuntu

Xubuntu Server

LTS

Kubuntu

19
Q

After installing a new package, in which directory are you most likely find its configuration file?

/lib

/etc

/opt

/usr

/conf

20
Q

Which of the following commands can be used to determine the time of the last login of a given user?

Showlog

Login

Recent

History

Last

21
Q

What two-character sequence is present at the beginning of an interpreted script? Please specify two characters only.

22
Q

Which command is used to make a shell variable known to subsequently executed programs?

Announce

Mv

Transfer

Env

Export

23
Q

Which of the following software packages is an email server?

GIMP

Apache

Postfix

Thunderbird

MySQL

A

Postfix

Postfix is the correct answer because it is an email server software package. It is widely used for routing and delivering emails on a server. Thunderbird is an email client, Apache is a web server, GIMP is an image editing software, and MySQL is a database management system. Therefore, only Postfix fits the criteria of being an email server.

24
Q

Which command line can be used to search help files that mention the word “copy”?

Whatis copy

Copy -help

Copy help

Man -k copy

A

Man -k copy

The correct answer is “man -k copy” because the “man -k” command is used to search for keywords in the
manual pages. In this case, it will search for help files that mention the word “copy”.

25
Identify the proper device for the third partition, on the second hard disk, on the first IDE controller on a PC system. /dev/hdb3 Dev/hdc1b3 /dev/hd1b3 /dev/hdc1d2p3 Dev/hdc1a3
/dev/hdb3 The answer /dev/hdb3 is the correct device for the third partition on the second hard disk on the first IDE controller on a PC system. The naming convention for Linux devices is /dev/[device][partition], where [device] represents the device identifier and [partition] represents the partition number. In this case, "hdb" represents the second hard disk, and "3" represents the third partition on that disk.
26
Which network interface always exists in a Linux system? Lo Wlan0 Eth0 Vlan0 Sit0
Lo
27
How can the current directory and its subdirectories be searched for the file name MyFile.xml? Find . -name MyFile.xml Search MyFile.xml ./ Less MyFile.xml Grep MyFile.xml | find Grep -r MyFile.xml
Find . -name MyFile.xml
28
The following file is found in which system file?root:x:0:0::/root:/bin/bash /etc/user.cong /etc/password /etc/passwd /usr/bin/shadow /etc/shadow
/etc/passwd
29
Which of the following commands are used to view real-time memory usage (Choose two correct answers). Memory Nice Free Ps Top
Free Top
30
Why is the file data.txt empty after executing sort data.txt > data.txt? Because sort cannot sort text files, only binary files Because sort detects that both files are the same Because the file gets truncated before the sort is executed Because, if data.txt is empty now, it must have been empty before
Because the file gets truncated before the sort is executed
31
What is the usual absolute path of the personal directory for the user foo?
home , foo , /home , foo , /home/foo, /users/foo
32
How could one search for the file foo.txt under the directory /home? Find /home -name foo.txt Search /home foo.txt Search /home -file foo.txt Find /home foo.txt Find /home -file foo.txt
Find /home -name foo.txt The correct answer is "find /home -name foo.txt". This is because the "find" command is used to search for files and directories within a specified directory. The "-name" option is used to search for files with a specific name, in this case "foo.txt". The "/home" argument specifies the directory in which to search for the file.
33
Which command displays the list of groups to which a user belongs? Id Whoami lsgroup Who
ld
34
How can the normal output of a command be written to a file while discarding the error output? Command>2>discard-error>file Command>2>file &1>/dev/null Command > output.txt 2>/dev/null Command> /dev/null 2&>1 output Command /dev/null
Command > output.txt 2>/dev/null command: The command whose output you want to capture. >: Redirects the standard output (stdout) of the command to a file named output.txt. 2>/dev/null: Redirects the standard error output (stderr) of the command to /dev/null, which is a special file that discards any data written to it. This way, only the normal output of the command will be written to the output.txt file, and any error output will be discarded.
35
Given the following directory permissions: drwxrwxrwt 14 root 36864 2012-03-02 11:17 tmp What is the letter t at the end of drwxrwxrwt indicate? It is a temporary bit that prevents launching commands in this directory It means that even though the directory is global writable only the owner can delete their own files It indicates that this directory contains only temporary files that may be deleted It is the sticky bit that causes all commands in this directory to be launched as a root.
It means that even though the directory is global writable only the owner can delete their own files
36
When typing a long command line at the shell, what single character can be used to split a command across multiple lines?
\ (backslash)
37
Which of the following commands can be used to view a file and do search operations within it while viewing the contents? See Less Report Grep
Less
38
A Linux computer has no access to the Internet. Which command displays information about the network gateway for the system? Ipconfig Route Traceroute Ifconfig Gateway
Route
39
What is the output of the following command? for token in a b c; do echo -n ${token} done A b c Anbncn $token$token$token {a}{b}{c} Abc
Abc The for loop iterates over the tokens a, b, and c. The echo -n ${token} command prints each token without a newline. Therefore, the tokens a, b, and c are printed consecutively on the same line, resulting in the output abc.
40
Which of the following applications are used to play an MP3 file on a Linux system? Choose three answers Audacious Banshee LibreOffice Player Xara Xtreme Amarok
Audacious Banshee Amarok
41
Which statement about the directory /etc/skel are correct? (Choose two answers) The directory contains a default set of configuration files used by the useradd command The files from the directory are copied to the home directory of the new user when starting the system The personal settings of root are in this directory The directory contains the global settings for the Linux system The files from the directory are copied to the home directory of the new user when the account is created
The directory contains a default set of configuration files used by the useradd command The files from the directory are copied to the home directory of the new user when the account is created
42
The output of the program date should be saved in the variable actdat. What is the correct statement? Actdat=date Date | acdat Actdat=$(date) Date > $actdat Set actdat='date'
Actdat=$(date)
43
Which of the following commands moves the directory ~/summer-vacation and its content to ~/vacation/2011? Mv -R ~/summer-vacation ~/vacation/2011 Mv /home/summer-vacation /home/vacation/2011 Mv ~/vacation/2011 ~/summer-vacation Mv ~/summer-vacation ~/vacation/2011 Move -R ~/summer-vacation ~/vacation/2011
Mv ~/summer-vacation ~/vacation/2011
44
Which command will archive /home and its content to /mnt/backp? Choose two correct answers. Sync -r /home /mnt/backp Mv/home /mnt/backp Tar -cf /mnt/backup/archive.tar /home Cp -ar /home /mnt/backp Copy -r /home /mnt/backp
Tar -cf /mnt/backup/archive.tar /home Cp -ar /home /mnt/backp