A file has 1000 lines and i want to display only 1st line
how to do it?
pls ..tel me
Answers were Sorted based on User's Feedback
Answer / raja
head -n <filename>
here n for no.of records we want.
ur quention my ans is
head -1 <filename>
| Is This Answer Correct ? | 7 Yes | 1 No |
Write a command that will display files in the current directory, in a colored, long format.
How do you list the files in an UNIX directory while also showing hidden files?
in UNIX ,What is the command to view contents of a large error log file?
in UNIX,How do you check for processes started by particular user suppose the user name is 'suresh'?
How to set sticky bit, or it have any seperate directory to create sticky bit in sunfir servers. Please help me , i don't no the exact answer?
Explain command to show the space allocation of files?
Who invented grep?
How to know a process is a zombie or orphan process?
who to change the duplex setting of network interface in command line
What is {} in find command?
How do I delete files from command prompt?
What does this command do? Cat food 1 > kitty