101-400 Exam Questions
378 real 101-400 exam questions with expert-verified answers and explanations. Page 1 of 8.
- Question #1
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 #2
Which of the following commands lists all currently installed packages when using RPM package management?
- Question #3
Which of the following commands can be used to download the RPM package kernel without installing it?
- Question #5
When removing a package, which of the following dpkg options will completely remove the files including configuration files?
- Question #6
Which file should be edited to select the network locations from which Debian installation package files are loaded?
- Question #7
Which of the following statements is correct regarding the command foo 1> bar?
- Question #8
Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?
- Question #10
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 #11
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 #12
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
- Question #13
In compliance with the FHS, in which of the directories are man pages found?
- Question #14
Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?
- Question #15
What is the purpose of the Bash built-in export command?
- Question #16
What is the output of the following command? echo "Hello World" | tr -d aieou
- Question #17
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...
- Question #18
Which of the following commands will NOT update the modify timestamp on the file /tmp/myfile.txt?
- Question #20
Which of the following commands displays the contents of a gzip compressed tar archive?
- Question #21
Which grep command will print only the lines that do not end with a / in the file foo?
- Question #22
Which of the following commands is used to change options and positional parameters for a running Bash?
- Question #23
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 #24
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 #25
Regarding the command: nice -5 /usr/bin/prog Which of the following statements is correct?
- Question #26
Which shell command is used to continue background execution of a suspended command?
- Question #27
Which of the following shell redirections will write standard output and standard error output to a file named filename?
- Question #28
In the vi editor, which of the following commands will copy the current line into the vi buffer?
- Question #29
Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)
- Question #30
When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?
- Question #31
Which of the following commands will reduce all consecutive spaces down to a single space?
- Question #32
Which character, added to the end of a command, runs that command in the background as a child process of the current shell?
- Question #33
Which of the following commands will print the last 10 lines of a text file to the standard output?
- Question #34
Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?
- Question #35
Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?
- Question #36
What happens after issuing the command vi without any additional parameters?
- Question #37
Which of the following command sets the Bash variable named TEST with the content FOO?
- Question #38
Which variable defines the directories in which a Bash shell searches for executable commands?
- Question #39
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 #41
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 #42
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 #43
When given the following command line. echo "foo bar" | tee bar | cat Which of the following output is created?
- Question #44
Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)
- Question #45
Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)
- Question #46
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 #47
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 #48
Which of the following commands changes the ownership of file.txt to the user dan and the group staff?
- Question #49
Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?
- Question #50
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 #51
What does the command mount -a do?
- Question #52
Which of the following settings for umask ensures that new files have the default permissions -rw- r----- ?
- Question #53
Which of the following is the device file name for the second partition on the only SCSI drive?
- Question #54
Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)