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

Опубликовано: 08 Февраль 2022
на канале: 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
----------------------------------


Смотрите видео Linux Basic Part12 Less and More , Head and Tail, WC ,DU онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Latif Shaik (latiftechnotes) 08 Февраль 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 16 раз и оно понравилось 0 людям.