Interview questions
Shell Script interview questions – page 2
134 questions. Tap “Show answer” to check yourself.
-
Write a shell script in Linux to shift all characters in a file forward by five characters. (Thus "a" becomes "f'").
-
How shell works?
-
Write a shell program to test whether a given number is even or odd?
-
How is the oppurtunities for unix in the software
-
How u convert string "hi pravin how are you?" to "Hi Pravin How Are You?"
-
wats the she bang statment with syntax?
-
Is there any command to find user password?
-
Write a shell script that counts a number of unique word contained in the file and print them in alphabetical order line by line?
-
What is the meaning of First line of shell script ,what is meaning of #! pleas explain brifly
-
How to read systems current date and time
-
There are three departments A,B and C.Write a query to display the names of all the persons( in departments other than A) who are paid higher than the person receiving the lowest salary in DEPT A
-
There is a record with fields namely name,roll no.,salary,grade etc.Now,write a script to create a file with multiple records have same combination of fields but with unique roll numbers.The script should work for different names in the input file.
-
How can you execute the shell scripts?
-
How do you write sql queries using shell script for eg:- we have databae table like EMPNO,ENAME,SAL,DEPTNO columns in EMP table how you display EMPNO,SAL FIELDS from emp in SHELL SCRIPT please explain with an example
-
A file has multiple records each having three 30-bit long fields(field1,field2,field3).There is also a lookup file,LOOK_UP.dat.Now, we need to consider only the last ten digits of field1 and lookup the file LOOK_UP.dat. If there a match then field2 and field3 should replaced with corresponding data from the lookup file. otherwise that particular record,for which there is no match, should be stored in a seperate file.
-
What are bootlevel in linux?which level is booting by default.
-
How to rename all the files in a folder having specific extension? Example: I have some files with extension (.txt) in a folder name 'Test'. I have to rename all the .txt files in a test and its subdirectories to .my extension.
-
What is the command for " how many shell is running in your system or how many shell supported by your system " ?.
-
The information of the two files should be redirect to Third file in such a way that, the third file contain the information like this. 1st line in third file should be from 1st file 2nd line in Third file should be from 2nd file 3rd line in Third file should be from 1st file 4th line in Third file should be from 2nd file - - so on
-
HOW TO CREATE 10 USERS IN UNIX(HP-UX) USING SHELL SHELL SCRIPT?
-
I want to upload a file to remote server through ftp daily.Can anyone suggest how to make a shell script for that.I hv credentials for that ftp
-
Write a program to display all the files from the current directory which are created in particular month
-
Write a shell script that accepts name from user and creates a directory by the path name, then creates a text file in that directory and stores in it, the data accepted from user till STOP, displays the no. of characters stored in the file.Program stops if directory name is null
-
Write a shell script to find the largest number from 3 given numbers.
-
c program which accept one argument as a directory name and prints all the file name along with its inode number and total count of the file in directory
-
c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again
-
c program to check whether all the directories in the path exists has read and write permission
-
c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command
-
c program to display the information of given file similar to givan by the unix or linux command ls -l
-
c program to implement unix/linux command to block the signal ctrl-c and ctrl- signal during the execution ls -l|wc -l