Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 55 pages
Exam (elaborations)

TESTOUT LINUX PRO RELIABLE EXAM QUESTIONS WITH SOLUTIONS GRADED A+2025/2026

Document preview thumbnail
Preview 4 out of 55 pages

ls -l /usr/bin /tmp/ - The contents of the /usr/bin directory will be redirected into a file called /tmp/, inserted after previous contents of the file. 1.7.8 You are trying to debug a shell script that has the command ls -s in it. You suspect an error is occurring here and want to send the results of the operation (successful or error) to a file named Friday in order to examine it later. What command should you use? - ls -s Friday 2&1 Learn more about 1.7.8 Which of the following commands give the same results as cat turbo? Already know - cat turbo 1.7.8 Which of the following commands sorts the contents of wordlist1 and wordlist2 and sends the result to standard output? - cat /usr/wordlist1 /usr/wordlist2 | sort already know

Content preview

TESTOUT LINUX PRO RELIABLE EXAM QUESTIONS WITH
SOLUTIONS GRADED A+2025/2026
✔✔ls -l /usr/bin >> /tmp/list.txt - ✔✔The contents of the /usr/bin directory will be
redirected into a file called /tmp/list.txt, inserted after previous contents of the file.

✔✔1.7.8 You are trying to debug a shell script that has the command ls -s in it. You
suspect an error is occurring here and want to send the results of the operation
(successful or error) to a file named Friday in order to examine it later. What command
should you use? - ✔✔ls -s > Friday 2>&1
Learn more about

✔✔1.7.8 Which of the following commands give the same results as cat < turbo?
Already know - ✔✔cat turbo

✔✔1.7.8 Which of the following commands sorts the contents of wordlist1 and wordlist2
and sends the result to standard output? - ✔✔cat /usr/wordlist1 /usr/wordlist2 | sort
already know

✔✔1.7.8 Which symbol uses the output of one command as the input of another
command?
Already know - ✔✔| (pipe symbol)

✔✔1.7.8 Which command reads from standard input and writes to standard output and
files? - ✔✔tee

✔✔1.7.8 Which of the following commands displays the contents of wordlist 1 and
wordlist2 then sorts the combined contents, then sends the results to the monitor and a
file named sortedwordlist? - ✔✔cat /usr/wordlist1 /usr/wordlist2 | sort | tee sortedwordlist

✔✔1.7.8 Which command overcomes the 128 KB shell command size restriction by
breaking up long list of arguments? - ✔✔xargs

✔✔1.7.8 Which of the following commands redirects standard output to the standard
error?
Learn more - ✔✔cat txtfile 1>&2

✔✔1.8.11 You need to create the directory /var/oracle/database/9i. Only the directory
/var exists. From the root of the filesystem, which command will create the directory
path? - ✔✔makdir -p /var/oracle/database/9i

,✔✔1.8.11 In the /var directory is a directory called backup. You need to delete the
directory backup and any file. You change directory focus to /var. Which command will
delete the directory backup and its files?
Already know - ✔✔rm -rf backup

✔✔1.8.11 You need to make an expanded listing of all the files in the /etc. Which
command will produce the listing?
Already know - ✔✔ls -al /etc

✔✔1.8.11 You need to view the contents of the /home/jerrys directory. What would you
enter at the command prompt to show all the contents, including hidden files and
directories?
Already Know - ✔✔ls -a /home/jerrys

✔✔1.8.11 Which of the following command copies the entire /temp directory with all of
its files, sub-directories, and files in the sub-directories to the /home/gshant directory.
(Select two. Each answer represents an independent solution.)
Already Know - ✔✔cp -r /temp /home/gshant
cp -R /temp /home/gshant

✔✔1.8.11 The /home/gshant/smp directory is empty and needs to be removed. You
change directories to /home/gshant. What would you enter at the command prompt to
remove the smp directory?
Already Know - ✔✔rmdir smp

✔✔1.8.11 The /home/gshant/smp directory contains several files. The directory and files
need to be removed. You change directories to /home/gshant. What would you enter at
the command prompt to remove the smp directory and the files it contains?
Already Know - ✔✔rm -r smp

✔✔1.9.11 Which of the following commands can combines multiple files into a single
text stream?
Already Know - ✔✔cat

✔✔1.9.11 You are logged in as root. You have the file, letter.doc, on a CD in the first
compact disk drive. Which command will copy the file from the CD to you home
directory?
Already Know - ✔✔cp /mnt/scd0/letter.doc /root

✔✔1.9.11 Which command would you use to rename the /home/pmallory/reports file to
reports.bak?
Already Know - ✔✔mv /home/pmallory/reports /home/pmallory/reports.bak

,✔✔1.9.11 Which command would you use to move a file from one location to another?
Already Know - ✔✔mv

✔✔1.9.11 Which command prints the attributes of a /boot/grub/grub.conf file? - ✔✔lsattr
/boot/grub/grub.conf

✔✔1.9.11 Which of the following commands will change the /home/gshants/smile file's
modification and last accessed times to the current time? - ✔✔touch
/home/gshants/smile

✔✔1.9.11 What would you enter at the command prompt to display a file's type? -
✔✔file

✔✔1.9.11 You want to view the contents of a directory, but the output of the ls -l
command scrolls beyond the limit of one console window. Which of the following
commands would allow you to see the full listing of the directory?
Already Know - ✔✔ls -l | less

✔✔1.10.6 Which of the following would be the result of the command ln -b ~/file1
/data/file1? - ✔✔a copy of the file ~/file1 would be placed in /data.

✔✔1.10.6 You previously created symbolic links in your home directory to a set of files
in the /data directory using the ln -s command. The system administrator just deleted
those files. What happens to the links that you created? - ✔✔The symbolic links would
still exists in you home directory but they would now be broken.

✔✔How to tell if a file is a symbolic link? - ✔✔You can tell if a file is a symbolic link if
you see a lower-case L (l) used as the first character in the permission string.
or if you see the -> character following a filename.

✔✔How to tell if a file is a hard link? - ✔✔If a file is a hard link it will use duplicate file
inodes, and the first character in the permission string will be a hyphen (-)

✔✔1.11.3 What is the full path to the directory that contains data files that change
constantly, including email, print jobs, and proxy cache files? - ✔✔/var

✔✔1.11.3 Which path represents the root directory? - ✔✔/

✔✔1.11.3 Under the Filesystem Hierarchy Standard (FHS), what is the full path to the
directory that contains the device files for a Linux system? - ✔✔/dev

✔✔1.11.3 Under the Filesystem Hierarchy Standard (FHS), which directory contains
information about the system state and processes? - ✔✔/proc

, ✔✔1.11.3 Which directory is the home directory for the root user account? - ✔✔/root

✔✔1.11.3 Which two statements best describe the purpose of the Filesystem Hierarchy
Standard (FHS)? - ✔✔During installation, software can predict where to place
configuration files.

Individual users can predict where to find system configuration files.

✔✔1.11.3 What is the full path to the directory that holds the man files on the system? -
✔✔/usr/share/man

✔✔1.12.8 Which of the following commands finds files with the .txt extension in the
/home/gshant directory? - ✔✔find /home/gshant -name '*.txt'

✔✔1.12.8 You need to find all files in the /home/gshant directory that are larger than
300k. You change directories to /home/gshant. What would you enter at the command
prompt to find these files? - ✔✔find -size +300k

✔✔1.12.8 Which statement describes file globbing? - ✔✔Using wildcards to match
specific files.

✔✔1.12.8 You need to quickly see all of the lines in the blue_and_gold text file that do
not reference Karen. Which command would you use to accomplish this? - ✔✔grep -v
Karen blue_and_gold

✔✔1.12.8 Which command would you use in a script to parse out the entries that
contain the word those from a file named config in a folder named diet beneath the /etc
directory? - ✔✔grep those /etc/diet/config

✔✔1.12.8 You want to perform an audit and make sure that group membership for user
dblair is correct. Which command would you use to view the groups that dblair is a
member of? - ✔✔grep -e dblair /etc/group

✔✔1.12.8 Which of the following files will be displayed when using the egrep exhibit[0-
9]+ ~/samps command? (Select two.) - ✔✔exhibit125
exhibit1

✔✔1.12.8 You are looking for a specific five-character string in the ~/customquote file
with the grep command. The string should begin with the letter g, end with an y, and be
the last string on the line.
Which regular expression should you use with grep? - ✔✔"g...y$"

Document information

Uploaded on
March 6, 2025
Number of pages
55
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$10.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
BOARDWALK
3.5
(41)
Sold
284
Followers
11
Items
36005
Last sold
1 week ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions