Using head and tail commands in Linux
Вставка
- Опубліковано 5 сер 2020
- In this video, we're going to be using the head and tail commands to work with files in Linux. These commands allow us to view the beginning and the end of a file, respectively.
By using these commands, we can troubleshoot issues with our files without ever having to open the file itself. Finally, we'll provide some examples to help you get started using these commands. So whether you're a beginner or a seasoned Linux user, this video is for you!
head command in Linux is used to list the top 10 lines of a file
tail command in Linux is used to list the bottom 10 lines of a file
head and tail commands in Linux can also be used to list certain characters from the file.
Website Link: www.dextutor.com
All the material along with PPT is available at : dextutor.com/courses/linux-co...
Other Playlist on this channel:
Linux Essential for Beginners: • Linux Tutorial For Beg...
RHCSA Exam: • RHCSA Exam Full Course
Operating System Lab: • Operating System Lab
Operating System: • Operating System
#headcommand #tailcommand #linux #linuxessentials
How to use head command in Linux
How to use tail command in Linux
using head command in linux
example of head command
practice questions on head command
examples of using tail command in linux
Sir I have a doubt regarding one question that you have asked regarding tail command that is print last 20 characters of file. I think there would be tail instead of head.
Yes Rohit you are correct.. It should be tail -c 20
So the correct command will be tail -c 20 filename
if i want to see first 4 characters ew use command head -c 4 file name. but this command is not working.
Refer this
dextutor.com/how-to-use-head-and-tail-command-in-linux/