LPIC 101 Flashcards
to show the name of the kernel currently using ?
uname
uname -s
to give us the kernel version ?
uname -r
to give us the build info ?
uname -v
to give us the name of the kernel the build date the version number and some processor information ?
uname -a
to show the version number of the bash shell ( Bourne again shell) ?
bash –version
change command behavior ?
options also called switches
change on what command operates ?
arguments also called parameters
to find an absolute directory of a command ?
which
to see if the command is built in the shell or it is an external command ?
type
to write the history commands in the .bash_history file?
history -w
to clear the history command ?
history -c
ls option to display a symbol called a classification indicator behind certain types of files to point out what type of file they are .
ls -F
/ = directory
@ = symbolic link
* = executable file
head -n 2 etc/passwd/
head -2 etc/passwd/
to show the first two lines of passwd file
head /etc/passwd
to show the first 10 lines of passwd file
cat /proc/version
to see the linux version same as uname -r
tail -n 2 etc/passwd/
tail -2 etc/passwd/
to show the last two lines of passwd file
tail -f /var/log/secure
to show the last lines of the log file and then display any new messages as they come in.
to show the first page of a long text file we use pager utility
more /var/log/boot.log
to show the first page of a long text file we use pager utility and to go backward and forward in the file
less /var/log/boot.log
we can perform searches in the less command using ?
/”pattern” = to search for the forward pattern
?”pattern” = to search for the backward pattern
how to show how much lines, words and bytes in a text file?
wc /etc/passwd