option
Questions
ayuda
daypo
search.php

LPIC 101-500v6 - Topic 3

COMMENTS STATISTICS RECORDS
TAKE THE TEST
Title of test:
LPIC 101-500v6 - Topic 3

Description:
LPIC 101-500v6 - Topic 3

Creation Date: 2022/12/23

Category: Others

Number of questions: 55

Rating:(10)
Share the Test:
Nuevo ComentarioNuevo Comentario
New Comment
NO RECORDS
Content:

(Exam Topic 3) Which of the following commands will reduce all consecutive spaces down to a single space?. tr '\s' ' ' < a.txt > b.txt. tr -c ' ' < a.txt > b.txt. tr -d ' ' < a.txt > b.txt. tr -r ' ' '\n' < a.txt > b.txt. tr -s ' ' < a.txt > b.tx.

(Exam Topic 3) What happens after issuing the command vi without any additional parameters?. vi starts and loads the last file used andmoves the cursor to the position where vi was when it last exited. vi starts and requires the user to explicitly either create a new or load an existing file. vi exits with an error message as it cannot be invoked without a file name to operate on. vi starts in command mode and opens a new empty file. vi starts and opens a new file which is filled with the content of the vi buffer if the buffer.

(Exam Topic 3) Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.). uptime. up. top. uname -u. time -u.

(Exam Topic 3) When given the following command line. echo "foo bar" | tee bar | cat Which of the following output is created?. cat. foo bar. tee bar. bar. foo.

(Exam Topic 3) Which of the following commands will print the last 10 lines of a text file to the standard output?. cat -n 10 filename. dump -n 10 filename. head -n 10 filename. tail -n 10 filenam.

(Exam Topic 3) Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?. cat < myapp | cat > file1.log. myapp 0>&1 | cat > file1.log. myapp | cat > file1.log. myapp | tee file1.log. tee myapp file1.lo.

(Exam Topic 3) What is the difference between the i and a commands of the vi editor?. i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modesautomatically. i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor. i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line. i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editin.

(Exam Topic 3) The /etc/____ file lists currently mounted devices.

(Exam Topic 3) 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?. magic. type. file. pmagic. hash.

(Exam Topic 3) In Bash, inserting 1>&2 after a command redirects. standard error to standard input. standard input to standard error. standard output to standard error. standard error to standard output. standard output to standard inpu.

(Exam Topic 3) Which of the following commands displays the contents of a gzip compressed tar archive?. gzip archive.tgz | tar xvf -. tar ztf archiv.tgez. gzip -d archive.tgz | tar tvf -. tar.

(Exam Topic 3) Which variable defines the directories in which a Bash shell searches for executable commands?. BASHEXEC. BASHRC. PATH. EXECPATH. PATHRC.

(Exam Topic 3) In the vi editor, which of the following commands will copy the current line into the vi buffer?. c. cc. 1c. yy. 1.

(Exam Topic 3) Which grep command will print only the lines that do not end with a / in the file foo?. grep'/$' foo. grep '/#' foo. grep -v '/$' foo. grep -v '/#' fo.

(Exam Topic 3) Which of the following files, located in the user home directory, is used to store the Bash history?. .bash_history. .bash_histfile. .history. .bashrc_history. .history_bash.

(Exam Topic 3) What does the ? symbol within regular expressions represent?. Match the preceding qualifier one or more times. Match the preceding qualifier zero or more times. Match the preceding qualifier zero or one times. Match a literal ?character.

(Exam Topic 3) Which of the following commands moves and resumes in the background the last stopped shell job?. run. bg. fg. back.

(Exam Topic 3) What command will generate a list of user names from /etc/passwd along with their login shell?. column -s : 1,7 /etc/passwd. chop -c 1,7 /etc/passwd. colrm 1,7 /etc/passwd. cut -d: -f1,7 /etc/passw.

(Exam Topic 3) What is the effect of the egrep command when the -v option is used?. It enables color to highlight matching parts. It only outputs non-matching lines. It shows the command's version information. It changes the output order showing the last matching line first.

(Exam Topic 3) In compliance with the FHS, in which of the directories are man pages found?. /usr/share/man. /opt/man. /usr/doc/. /var/pkg/man. /var/man.

(Exam Topic 3) 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?. -dirmax. -maxdepth. -maxlevels. -n. -s.

(Exam Topic 3) What is the default nice level when a process is started using the nice command?. -10. 10. 20. 0.

(Exam Topic 3) Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?. SIGTERM. SIGINT. SIGSTOP. SIGKILL.

(Exam Topic 3) Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?. fmt -f 1,4 /etc/passwd. split -c 1,4 /etc/passwd. cut -d : -f 1,4 /etc/passwd. paste -f 1,4 /etc/passw.

(Exam Topic 3) Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?. sed '/bob/Bob' letter > newletter. sed s/bob/Bob/ letter < newletter. sed's/bob/Bob' letter > newletter. sed 's/bob/Bob/g' letter > newletter. sed 's/bob, Bob/' letter > newletter.

(Exam Topic 3) What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?. 9. 19. 49. 9.

(Exam Topic 3) While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?. :r. :n. :w. :e.

(Exam Topic 3) 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.). find /tmp -uid root -print. find -path /tmp -uid root. find /tmp -user root -print. find /tmp -user root. find -path /tmp -user root -print.

(Exam Topic 3) 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?. By using the command :repeat followed by the number and the command. By specifying the number right in front of a command such as 4l or 2yj. By selecting all affected lines using the shift and cursor keys before applying the command. By issuing a command such as :set repetition=4 which repeats every subsequentcommand 4 times.

(Exam Topic 3) Which shell command is used to continue background execution of a suspended command?. &. bg. cont. :&.

(Exam Topic 3) Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.).

(Exam Topic 3) What is the purpose of the Bash built-in export command?. It allows disks to be mounted remotely. It runs a command as a process in a subshell. It makes the command history available to subshells. It sets up environment variables for applications. It shares NFS partitions for use by other systems on the network.

(Exam Topic 3) 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?. <<. <|. !<. &<.

(Exam Topic 3) Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.). esc ZZ. ctrl :w!. esc zz. esc :wq!. ctrl XX.

(Exam Topic 3) Which of the following commands can be used to create a USB storage media from a disk image?. gdisk. dd. cc. fdisk. mount.

(Exam Topic 3) Which of the following commands is used to change options and positional parameters for a running Bash?. history. set. bashconf. setsh. envsetup.

(Exam Topic 3) When running the command sed -e "s/a/b/" /tmp/file >/tmp/file While /tmp/file contains data, why is /tmp/file empty afterwards?. The file order is incorrect. The destination file must be mentioned before the command to ensure redirection. The command sed did not match anything in that file there for the output is empty. When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading. Redirection for shell commands do not work using the > character. It only works using the | character instead.

(Exam Topic 3) Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.). <. <<<. >. >>>. %>.

(Exam Topic 3) Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path.

(Exam Topic 3) What is the output of the following command? echo "Hello World" | tr -d aieou. Hello World. eoo. Hll Wrld. eoo Hll Wrld.

(Exam Topic 3) 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.). source /usr/local/bin/runme.sh. . /usr/local/bin/runme.sh. /bin/bash /usr/local/bin/runme.sh. /usr/local/bin/runme.sh. run /usr/local/bin/runme.sh.

(Exam Topic 3) Which of the following shell redirections will write standard output and standard error output to a file named filename?. 2>&1 >filename. >filename 2>&1. 1>&2>filename. >>filename. 1&2>filename.

(Exam Topic 3) Which of the following explanations are valid reasons to run a command in the background of your shell?. The command does not need to execute immediately. The command has to run immediately but the user needs to log out. The system is being shut down and the command needs to restart execution immediately after the reboot. The command can run at a lower priority than normal commands run on the command line.

(Exam Topic 3) A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?. rmdir '~/\dir'. rmdir "~/\dir". rmdir ~/'dir'. rmdir ~/\dir. rmdir ~/\\dir.

(Exam Topic 3) Regarding the command: nice -5 /usr/bin/prog Which of the following statements is correct?. /usr/bin/prog is executed with a nice level of -5. /usr/bin/prog is executed with a nice level of 5. /usr/bin/prog is executed with a priority of -5. /usr/bin/prog is executed with a priority of 5.

(Exam Topic 3) 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?. i (lowercase). P (uppercase). p (lowercase). U (uppercase). u (lowercase).

(Exam Topic 3) When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?. -10. 0. 10. 20.

(Exam Topic 3) What does the + symbol mean in the following grep regular expression: grep '^d[aei]\+d$' /usr/share/dict/words. Match the preceding character set ([aei]) one or more times. Match the preceding character set ([aei]) zero or more times. Match the preceding character set ([aei]) zero or one times. Match a literal + symbol.

(Exam Topic 3) What is the default action of the split command on an input file?. It will break the file into new files of 1,024 byte pieces each. B. It will break the file into new files of 1,000 line pieces each. It will break the file into new files of 1,000 line pieces each. It will break the file into new files of 1,024 kilobyte pieces each. It will break the file into new files that are no morethan 5% of the size of the original file.

(Exam Topic 3) Which signal is missing from the following command (killall -s ______ daemon) that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files?.

(Exam Topic 3) Which of the following statements is correct regarding the command foo 1> bar?. The stdout from the command foo is appended to the file bar. The stdout from the command foo overwrites the file bar. The command foo receives its stdin from the file bar. The command foo receives its stdin from the stdout of the command bar. E. The stderr from the command foo is saved to the file bar.

(Exam Topic 3) Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?. kill -PIPE 123. kill -KILL 123. kill -STOP 123. kill -TERM 123.

(Exam Topic 3) You are trying to make a hard link to an ordinary file but ln returns an error. Which of the following could cause this?. The source file is hidden. The source file is read-only. The source file is a shell script. You do not own the source file. The source and the target are on different filesystems.

(Exam Topic 3) Which of the following command sets the Bash variable named TEST with the content FOO?. set TEST="FOO". TEST = "FOO". var TEST="FOO". TEST="FOO".

(Exam Topic 3) Which character, added to the end of a command, runs that command in the background as a child process of the current shell?. !. +. &. %. #.

Report abuse