Answer Posted / abani_mahana
sed -n '1p' <filename>
head -n filename | tail -1
(change n as per your requirements)
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the unix command to confirm a remote host is alive or not?
What is grep r?
What are the commands in UNIX to list the files in a Directory?
Name the unix command to find how many days the server has been up.
How do I find previous commands in unix?
What is s and g in sed command?
What are some command words?
Does cp command overwrite files?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What do chown command do?
What does #!/ Bin sh do?
What is ‘ps’ command for?
Explain command to show the space allocation of files?
What is the use of awk command in unix?
How do you repeat a command in terminal?