Uploaded by Flakes Osman

Linux Chapter 1-4 Review Questions and Answers List

advertisement
In Vim what does the lower case letter i stand for?
Insert
In Linux running cd or CD will produce the same result?
Flase
_____ a Red Hat Linux command that can be used to rename and move a file ?
mv
cat lab.txt | ___________ "lab file" student command will email the result the command cat lab.txt
mail -s
What Red Hat Linux Command would display the absolute pathname for the present working directory?
Pwd
To enter line-based visual mode in vi the system needs to position the cursor at the first character in the
row and key in__________.
V
What is the default location of Red Hat SoS report?
/var/tmp
Linux Red Hat system's root directory is _______?
/
_____ when executed will close Linux Terminal?
Exit
_____ when executed will display the the first 10 lines of file?
Head
ipconfig is used to display tcp/ip settings?
False
What Red Hat command can an admin junior use to access subscription based support?
Redhat-support-tool
_____ when executed will change the computer hostname?
Hostname
The command ---------- can be used to save and format the output of man -t passwd to a postscript file
format?
Man -t passwd > passwd.ps
Return to the current user's home directory?
cd
In the command lp passwd.ps -P 2-3 what does the argument -P stand for?
Page
This command-------------- is used to uncompress or unpack DiagnosticReport.tar.xz ?
Tar -xvJf
This command -------------- can be used to generate a Red Hat SoS report?
Sosreport
What command would you use to read html file located in /usr/share/doc
Firefox
_____ when executed will display the the last 10 lines of file?
Tail
_______ used to list directory content?
ls -l
The red Hat command ----------- can be used to lock a user account, while ___________ command can be used to
unlock it?
Passwd -l passwd -u
__________is a Linux GUI text editor.
Gedit
___ Red Hat command is used to create an empty file?
Touch
____a Linux Red Hat directory stores system configuration data similar to system32?
/etc
______ a Red Hat Command used to delete empty directories?
Rmdir
In addition to man command what other Linux command would you use to view documents related
to evince command?
Pinfo
In Linux Red Hat what is the correct syntax to run mkdir and cd using a single command?
Mkdir ; cd
Which command would use to switch from terminal to Gnome Desktop?
Ctrl+Alt+F1
______a Linux command use to identify a file type?
File
In nano using _______combination will save the changes.
Ctrl+o
A Red Hat Linux command that lists the user's current directory in long format is ______?
Ls -l
The command echo "Love you" _____________mario.txt will append "love you at the end of mario.txt file.
>>
The command ls -al _____________lab.txt will direct the result to lab.txt file.
>
To exit Vim and save your changes, press Esc, type __________and then Enter.
:wq
_____ when executed will display the the first 5 lines of file?
Head -n 5
Using___________ in vim delete selected characters.
X
In Linux Red Hat what command would use to create 8 Xfile.pdf with a single command?
Touch Xfile{1..8}.pdf
When used this Red Hat Command can force the deletion of a directory and its subdirectories?
rm -rf
To enter line-based visual mode in vi position the cursor at the first character in the row and send a control
sequence using __________.
Ctrl+v
Download