Missed Questions Flashcards
(44 cards)
Where is the BIOS located?
Motherboard
RAM
Hard Drive
LCD Monitor
Motherboard
Which of the following commands can be used to extract files from an archive?
Tar -e
Tar -v
Tar -xvf
Tar -vf
Tar -evf
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.
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
Tar -xvf
When a new user is added, where does the user ID get stored?
/etc/shpasswd
/etc/pass
/etc/passwd
/etc/users
/etc/realm
/etc/passwd
What are the three sets of permission for a file?
User, group, others
Administrator, group, others
User, standard user, others
Administrator, standard user, others
User, group, others
Which command will display running process information in realtime?
Show current
Ps current
Process
Top
Top
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
Every user belongs at least to one user group
What is the command that will show system boot time messages?
Echo
Display system boot
Lspci
Dmesg
Messages
Dmesg
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
Tail -n 1 foo.txt
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
The file line starts with #!/bin/bash
Which of the following directories is often used to store log files?
/home
/usr
/var
/dev
/temp
/var
Which of the following programs is not a graphical web browser?
Konqueror
Chrome
Firefox
Opera
Links
Konqueror
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
The combination of Linux, Apache, MySQL, and PHP and other programming languages
Which command shows if /usr/bin is in the current shell search path?
Cat %PATH
Echo$PATH
Echo %PATH%
Cat PATH
Echo $PATH
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
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.
Which option will cause the echo command NOT to output a trailing newline?
-n
-e
-s
-p
-n
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
-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).
Which of the following Ubuntu releases is considered most stable and fit to use for business purposes?
Ubuntu Vanilla
Xubuntu
Xubuntu Server
LTS
Kubuntu
LTS
After installing a new package, in which directory are you most likely find its configuration file?
/lib
/etc
/opt
/usr
/conf
/etc
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
Last
What two-character sequence is present at the beginning of an interpreted script? Please specify two characters only.
(#!)
Which command is used to make a shell variable known to subsequently executed programs?
Announce
Mv
Transfer
Env
Export
Export
Which of the following software packages is an email server?
GIMP
Apache
Postfix
Thunderbird
MySQL
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.
Which command line can be used to search help files that mention the word “copy”?
Whatis copy
Copy -help
Copy help
Man -k copy
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”.