Test de cunoștințe Linux (LPIC-1)

QUESTION 1: Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?
QUESTION 2: Which of the following information is stored within the BIOS? (Choose TWO correct answers.)
QUESTION 3: Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)
QUESTION 4: Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)
QUESTION 5: SIMULATION: Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
QUESTION 6: What information can the lspci command display about the system hardware? (Choose THREE correct answers.)
QUESTION 7: Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)
QUESTION 8: What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?
QUESTION 9: SIMULATION: Which command will display messages from the kernel that were output during the normal boot sequence?
QUESTION 10: Which of the following commands will write a message to the terminals of all logged in users?
QUESTION 11: Which of the following kernel parameters instructs the kernel to suppress most boot messages?
QUESTION 12: Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?
QUESTION 13: After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?
QUESTION 14: Which of the following commands is used to update the list of available packages when using dpkg based package management?
QUESTION 15: Which of the following commands can be used to download the RPM package kernel without installing it?
QUESTION 16: When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.)
QUESTION 17: Which of the following is correct when talking about mount points?
QUESTION 18: Which function key is used to start Safe Mode in Windows NT?
QUESTION 19: Which of the following environment variables overrides or extends the list of directories holding shared libraries?
QUESTION 20: SIMULATION: Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)
QUESTION 21: Which RPM command will output the name of the package which supplied the file /etc/exports?
QUESTION 22: SIMULATION: In which directory must definition files be placed to add additional repositories to yum?
QUESTION 23: SIMULATION: What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)
QUESTION 24: When removing a package, which of the following dpkg options will completely remove the files including configuration files?
QUESTION 25: Which file should be edited to select the network locations from which Debian installation package files are loaded?
QUESTION 26: SIMULATION: Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)
QUESTION 27: SIMULATION: Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)
QUESTION 28: SIMULATION: Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)
QUESTION 29: Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?
QUESTION 30: Which of the following commands can be used to create a USB storage media from a disk image?
QUESTION 31: In Bash, inserting 1>&2 after a command redirects
QUESTION 32: What command will generate a list of user names from /etc/passwd along with their login shell?
QUESTION 33: In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?
QUESTION 34: Which of the following statements is correct regarding the command foo 1> bar?
QUESTION 35: Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?
QUESTION 36: SIMULATION: Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files?
QUESTION 37: What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
QUESTION 38: Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?
QUESTION 39: A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
QUESTION 40: In compliance with the FHS, in which of the directories are man pages found?
QUESTION 41: Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
QUESTION 42: What is the purpose of the Bash built-in export command?
QUESTION 43: What is the output of the following command? echo "Hello World" | tr -d aieou
QUESTION 44: Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?
QUESTION 45: Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?
QUESTION 46: What is the default nice level when a process is started using the nice command?
QUESTION 47: What is the default action of the split command on an input file?
QUESTION 48: What is the difference between the i and a commands of the vi editor?
QUESTION 49: SIMULATION: Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)
QUESTION 50: Which of the following commands moves and resumes in the background the last stopped shell job?
QUESTION 51: What is the effect of the egrep command when the -v option is used?
QUESTION 52: What does the ? symbol within regular expressions represent?
QUESTION 53: In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?
QUESTION 54: Which of the following files, located in the user home directory, is used to store the Bash history?
QUESTION 55: SIMULATION: Which Bash environment variable defines in which file the user history is stored when exiting a Bash process? (Specify ONLY the variable name.)
QUESTION 56: Which of the following commands displays the contents of a gzip compressed tar archive?
QUESTION 57: Which grep command will print only the lines that do not end with a / in the file foo?
QUESTION 58: Which of the following commands is used to change options and positional parameters for a running Bash?
QUESTION 59: Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
QUESTION 60: From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)
QUESTION 61: Regarding the command: nice -5 /usr/bin/prog. Which of the following statements is correct?
QUESTION 62: Which shell command is used to continue background execution of a suspended command?
QUESTION 63: Which of the following shell redirections will write standard output and standard error output to a file named filename?
QUESTION 64: In the vi editor, which of the following commands will copy the current line into the vi buffer?
QUESTION 65: Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)
QUESTION 66: When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?
QUESTION 67: Which of the following commands will reduce all consecutive spaces down to a single space?
QUESTION 68: Which character, added to the end of a command, runs that command in the background as a child process of the current shell?
QUESTION 69: Which of the following commands will print the last 10 lines of a text file to the standard output?
QUESTION 70: Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?
QUESTION 71: Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?
QUESTION 72: What happens after issuing the command vi without any additional parameters?
QUESTION 73: Which of the following command sets the Bash variable named TEST with the content FOO?
QUESTION 74: Which variable defines the directories in which a Bash shell searches for executable commands?
QUESTION 75: Which of the following commands determines the type of a file by using a definition database file which contains information about all common file types?
QUESTION 76: SIMULATION: Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)
QUESTION 77: Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)
QUESTION 78: When running the command sed -e "s/a/b/" /tmp/file >/tmp/file while /tmp/file contains data, why is /tmp/file empty afterwards?
QUESTION 79: When given the following command line: echo "foo bar" | tee bar | cat. Which of the following output is created?
QUESTION 80: Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)
QUESTION 81: Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)
QUESTION 82: After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation?
QUESTION 83: After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)
QUESTION 84: Which of the following commands changes the ownership of file.txt to the user dan and the group staff?
QUESTION 85: Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?
QUESTION 86: Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?
QUESTION 87: What does the command mount -a do?
QUESTION 88: Which of the following settings for umask ensures that new files have the default permissions -rw-r----- ?
QUESTION 89: Which of the following is the device file name for the second partition on the only SCSI drive?
QUESTION 90: In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)
QUESTION 91: Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?
QUESTION 92: Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?
QUESTION 93: Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?
QUESTION 94: How many fields are in a syntactically correct line of /etc/fstab?
QUESTION 95: SIMULATION: Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.)
QUESTION 96: Which of the following file permissions belong to a symbolic link?
QUESTION 97: Creating a hard link to an ordinary file returns an error. What could be the reason for this?
QUESTION 98: Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)
QUESTION 99: Which of the following commands will change the quota for a specific user?
QUESTION 100: Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?
QUESTION 101: Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as needed? (Choose TWO correct answers.)
QUESTION 102: What is the purpose of the Filesystem Hierarchy Standard?