- How do you archive 10 days old logs?
- What is tee command used for?
- How will you divide a huge file with millions of records into smaller files of small sizes?
- How can you get the specific lines from a file using awk command?
- What do you mean by sed command?
- count the number of occurrence of a particular word in a file?
- How will you list all the links present in a directory?
- rename all the text files present in a directory into ksh file?
- Write a regular expression to retrieve “Apple” from the file. And print only the name “Apple”. (complete line should not be printed)
- In a log file you have date in yyyy mm dd hh:mi:ss format. Retrieve those dates where time is between 19:10:00 to 19:20:00
- Write a shell script to reverse a string without using inbuilt function?
- How to find a process and kill in Unix?
- Unix command which will display content of file which has more than 45 characters?
- list all zombie process?
- list all the files having size greater than 10k in a directory?
- print all the fields in a file in reverse order?
- give the total sum of all sizes and average of sizes of files in a directory.
- Print the contents of file from a specified position(Pattern) to the specified end position(pattern).
- print all rows of files which are not equal to their previous rows.
- show the content of a file in a page format and starting with number 5 as the first line.
Friday, September 11, 2015
Unix Shell Scripting interview questions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment