Main Flashcards
Where are bootloader files stored?
/boot
Where are configuration files stored?
/etc
Where are users files stored?
/home
What is root user home directory?
/root
Where are removable media stored?
/media
What is older place where removable media were stored?
/mnt
Where are 3rd party apps stored?
/opt
Where is variable data stored?
/var
Where are Linux user program binaries stored?
/usr/bin
Where are Linux admin program binaries stored?
/usr/sbin
Where is local installation program data stored?
/usr/local
How would you list only directory name?
ls -d
What is a distribution?
Linux kernel (as base) + utility software
What is a distribution?
Linux kernel (as base) + utility software
What is FHS
Filesystem Hierarchy Standard
How would you get the kernel information
uname -r
How would you get kernel compilation datetime?
uname -v
How would you print kernel name?
uname = uname -s
What type of commands we can distinguish?
Built-in and external
What program would you use to check whether a command is built-in or external?
type
What programs will help you find and understand usage of commands? (4)
help | info | man | apropos
If you print your command history. How would you execute n-th command?
!n
What is the difference between history LIST and .bash_history
History LIST ‘lives’ inside’ memory, not storage. LIST contains all commands associated with current’s user session.
In what section of man pages is command syntax described?
SYNOPSIS
What command would you use to get information about built-in commands?
help
What are the programs called pager utilities?
less and more
Which program is more advanced? less or more
less
How would you perform a forward and backward search in less program?
/ - forward search
? - backward search
Can more utility go backward?
Nope
Which program would you use and with which parameter to look at the file in the real time?
tail -f
How many lines do the head and tail programs print by default?
10
What does the -F parameter means used with ls command?
Classify and print a file type.
What does wc program print by default?
lines, word, bytes
Which parameter allows you to show number of occurrences using uniq program?
-c
How many times will duplicate appear using -d parameter?
Once
Which parameter would you use to print all duplicates with uniq command?
-D
Which program allows you to print file content with line numbers?
nl
Does nl program counts empty new lines? (\n)
Nope
How would you display two files side by side?
paste
How would you part a file by a specified pattern?
split
Which program would you use to change only one letter in a text file? And which to change patterns?
tr and sed :-)
How would you display the second column separated by dot?
cud -d “.” -f2 file.txt
How would you turn off grep highlighting?
grep –color=never