Question
LINUX COMMANDS What are three commands used for finding data . Select one: a. awk, which, find b. sed, awk, find c. paste, join, uniq
LINUX COMMANDS
What are three commands used for finding data.
Select one:
a. awk, which, find
b. sed, awk, find
c. paste, join, uniq
d. grep, which, find
e. head, tail, less
If you are using vim and need to get a prompt to save the current file or quit, what key should you press?
Select one:
a. Ctrl+Alt
b. Esc
c. F1
d. Alt
e. Ctrl
Which of the following gives the correct hierarchy for login shell sessions, starting from the first file bash attempts to read.
Select one:
a.
.bash_profile
.bash_login
.profile
b.
.bashrc
.bash_profile
.profile
c.
/dev/null/bashrc
/etc/default/locale
/bin/bash
d.
.profile
.bash_profile
.bashrc
e.
.bash
.ksh
.vimrc
nano, vi, vim, and emacs are all examples of:
Select one:
a. environment variables
b. graphical text editors
c. text-based text editors
d. shell builtins
Assume you are using the vi editor and you are in insert mode, meaning you're actively editing the text in a document. How do you save your work and exit the editor?
Select one:
a. ESC
b. CTRL + S
c. ESC -> q! -> Enter/Return
d. File -> Save
e. Esc -> :wq -> Enter/Return
What command would you use to print out environment variables and their associated values?
Select one:
a. printenv USER
b. printenv root
c. printenv | less
d. printenv all
When using vi, what key do you type in normal or command mode to go to the last line in a file?
Select one:
a. Z
b. G
c. a
d. w
e. i
Q Why would you use the alias command?
Select one:
a. to create aliases for the environment's variables
b. to create a simple, short command for otherwise complicated commands
c. to create an alias for the user's account
d. to do masterful hacking without rousing suspicion
vi can open multiple files at once.
Select one:
True
False
Many commands in vi can be prefixed with a number which specifies which line the command is to be carried out on.
Select one:
True
False
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