Linux Basic Part12 Less and More , Head and Tail, WC ,DU

Published: 08 February 2022
on channel: Latif Shaik (latiftechnotes)
16
0

20220208 181612
cat -- read file

less --read file from top to bottum and buttom to top
--search pattern/key -- quit -q

more -- read file from top to buttom
--search pattern/key
--quit -q , reach end of file

less /etc/passwd

more /etc/passwd

--------------------
kick start
jump start
unattended installation
---------------------

head --display first lines
-1st 10 lines by default

tail --display last lines
-by default last 10 lines

wc -- word count
-count line word char/byte


head /etc/passwd --1st 10 lines

head -5 /etc/passwd -- 1st 5 lines

head -15 /etc/passwd --1st 15 lines

tail /etc/passwd --last 10 lines

tail -5 /etc/passwd --last 5 lines

tail -15 /etc/passwd --last 15 lines

tail -l /etc/passwd --last line

wc /etc/passwd

47 103 2585 --47 lines , 103 word, 2585 char/byte

wc -l /etc/passwd -- -l no of lines

wc -w /etc/passwd -- -w no of word

wc -c /etc/passwd -- -c no of char

du -- size on the disk
du -h --human readable MB,GB,KB....
du -k --kilobytes
du -b --bytes
----------------------------------


Watch video Linux Basic Part12 Less and More , Head and Tail, WC ,DU online without registration, duration hours minute second in high quality. This video was added by user Latif Shaik (latiftechnotes) 08 February 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 16 once and liked it 0 people.