- Write a script to print the first 10 elements of Fibonacci series?
- I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
- In my bash shell I want my I want my prompt to be of format '$" Present working directory" : "hostname" > and load a file containing a list of user defined functions as soon as I log in, how will you automate this?
- Print the 10th line without using tail and head command.
- Given a file, write a command sequence to find the count of each word.
- Given a file, replace all occurrence of word "ABC" with "DEF" from 5th line till the end in only those lines that contains word "MNO".
- Use sed command to replace the content of the file [if cat file1 ABCD EFGH then output should be EFGH ABCD].
- How will you find the 99th line of a file using only tail and head command?
- I have 2 files and I want to print the records which are common to both. Which command should I use?
- How will you connect to a database server from linux ?
NOTE:For 3 + years experience.