Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A directory is a type of file. True False Which command would a user type on the command line to find out the current directory
A directory is a type of file.
True
False
Which command would a user type on the command line to find out the current directory in the directory tree?
pd
cd
where
pwd
Which of the following is an absolute pathname? Choose all that apply.
C:myfolderresume
resume
homeresume
C:homeresume
A special device file is used to
enable proprietary custombuilt devices to work with Linux
represent hardware devices
keep a list of device settings specific to each individual user
do nothing in Linux
If a users current directory is homemaryproject which command could they use to move to the etc directory directly under the root?
cd
cd etc
cd etc
cd etc
After typing the ls a command, you notice a file whose filename begins with a period What does this mean?
It is a binary file.
It is a system file.
It is a file in the current directory.
It is a hidden file.
After typing the ls F command, you notice a filename that ends with an asterisk character. What does this mean?
It is a hidden file.
It is a linked file.
It is a special device file.
It is an executable file.
The vi editor can function in which two of the following modes? Choose both that apply.
Command
Input
Interactive
Insert
The less command offers less functionality than the more command.
True
False
Which command searches for and displays any text contents of a binary file?
text
strings
od
less
How can a user switch from insert mode to command mode when using the vi editor?
Press the CtrlAltDel keys simultaneously.
Press the Del key.
Type a : character.
Press the Esc key.
If resume is the name of a file in the home directory off the root of the filesystem and your present working directory is home, what is the relative name for the file named resume?
homeresume
resume
resume
homeresume
What will the following wildcard expression return: fileac
fileac
filea, filec
filea, fileb, filec
fileabc
What will typing q at the : prompt in command mode do when using the vi editor?
Quit as no changes were made.
Quit after saving any changes.
Nothing because the is a metacharacter.
Quit without saving any changes.
A user types the command head poemsmary What will be displayed on the terminal screen?
The first line of the file mary
The first lines of the file mary
The header for the file mary
The first lines of the file mary
The tac command
displays the contents of a file in reverse order, last line first and first line last
displays the contents of hidden files
displays the contents of a file in reverse order, last word on the line first and first word on the line last
is not a valid Linux command
How can you specify a text pattern that must be at the beginning of a line of text using a regular expression?
Precede the string with a
Follow the string with a
Precede the string with a $
Precede the string with a
Linux has only one root directory per directory tree.
True
False
Using a regular expression, how can you indicate a character that is not an a or b or c or d
abcd
not ad
ad
ad
A user typed the command pwd and saw the output: homejimsalespending How could that user navigate to the homejim directory?
cd
cd jim
cd
cd
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started