Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the command to print last 8 lines of any text file.

Answers were Sorted based on User's Feedback



what is the command to print last 8 lines of any text file...

Answer / jupiter

#tail -n 8 <file-name>

Is This Answer Correct ?    55 Yes 16 No

what is the command to print last 8 lines of any text file...

Answer / sravani

tail -8 <filename>

Is This Answer Correct ?    39 Yes 4 No

what is the command to print last 8 lines of any text file...

Answer / syed shariq hussain

tail -8 <FILENAME>

Is This Answer Correct ?    33 Yes 1 No

what is the command to print last 8 lines of any text file...

Answer / deeps

tail -8f filename

Is This Answer Correct ?    14 Yes 7 No

what is the command to print last 8 lines of any text file...

Answer / ravikishore

cat <f.n> | tail -8

Is This Answer Correct ?    2 Yes 0 No

what is the command to print last 8 lines of any text file...

Answer / kiruthiga.s

tail + 8

Is This Answer Correct ?    0 Yes 0 No

what is the command to print last 8 lines of any text file...

Answer / meghna

sed -n '$-8 , $p' filename

Is This Answer Correct ?    0 Yes 1 No

what is the command to print last 8 lines of any text file...

Answer / santosh sathe

1) use tail -8 filename

2) This will print last three lines of a file

cat 1.lst

hi
hello
bye
good
morning


sed -n '1,2!p' 1.lst

o/p

bye
good
morning

The last 3 lines are printed.sed command uses !(negation)
operator for skipping the 1st and 2nd line,That means it
will print all the lines except 1st and 2nd.

Is This Answer Correct ?    0 Yes 1 No

what is the command to print last 8 lines of any text file...

Answer / indu sharma

cat <filename> | head -n 8

Is This Answer Correct ?    2 Yes 17 No

what is the command to print last 8 lines of any text file...

Answer / chandrani

head -8 <file name>

Is This Answer Correct ?    9 Yes 84 No

Post New Answer

More Unix Commands Interview Questions

How to install scsi driver in unix? give me explanation clearly?

1 Answers   HCL, TCS,


How to identify whether a file is normal file or directory?

3 Answers  


What is Unix, and how does it differ from other operating systems?

2 Answers  


What is the difference between AWK and SED commands? Plz give example and explain...

3 Answers   RBS,


What is $0 bash?

0 Answers  


who to change the duplex setting of network interface in command line

1 Answers  


what these two commands prints "echo test","cat test"?

6 Answers   TCS, Wipro,


What does awk stand for?

0 Answers  


when we installing aix os the ssh installed default?

2 Answers  


What is the function of grep command in unix?

0 Answers  


which command is used to stop a running process in unix?

8 Answers  


How i'll delete a particular line from the file? Please give answer as soon as possible. Thanks in advance.

12 Answers   IBM,


Categories