Answered step by step
Verified Expert Solution
Link Copied!

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:\myfolder\resume
resume
/home/resume
C:home/resume
A special device file is used to _____.
enable proprietary custom-built 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 /home/mary/project1, 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 Ctrl+Alt+Del 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?
/home/resume
/resume
resume
\home\resume
What will the following wildcard expression return: file[a-c]?
filea-c
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 /poems/mary. What will be displayed on the terminal screen?
The first line of the file mary
The first 10 lines of the file mary
The header for the file mary
The first 20 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 [a-d]
[!a-d]
!a-d
A user typed the command pwd and saw the output: /home/jim/sales/pending. How could that user navigate to the /home/jim directory?
cd ..
cd /jim
cd ../..
cd ./.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are hotspots, and how can they help businesspeople?

Answered: 1 week ago