The
following are the most likely basic interview questions that are asked by the
interviewers. If you are going to be a UNIX Administrator, UNIX support
personnel, Data Warehouse Developer on UNIX/LINUX platform, Oracle or Sybase Developer, or even a
Database Administrator, You must know the answers to the following questions
before appearing for an interview.
Interview Questions:
- Which Shells are available or installed on your system
- Which file gets executed first when a user logs in
- Display total number of users currently logged on. Do not display the list of users, Display the number only
- Write a shell script to print "High Load" if more than 100 user are logged on to the system.
- List the size of all files in /etc directory only of the size is more than 10MB
- List the owner and the name of all files in /tmp directory and its sub-directories if the file permission is 777
- Mention at least 2 differences between hard link and soft link
- How many Oracle databases are currently running on the server
- Which users have been assigned a bash as a login shell to them
- List of users who have more that 5 sessions opened.
- Move all files owned by user john under /home directory to /tmp. Move only those
files whose size is more than 100MB
- Configure your account in such a way that your home directory is automatically
backup-ed up to /backup directory every time you logout.
- Write a shell script to send an email to root if any filesystem is more than 80%
full.
- List out a PID, owner and the name of the process which is taking the highest
amount of CPU.
-
List out a PID, owner and the name of the process which is taking the highest
amount of RAM
- How to start a job in background
- How to bring a background job to foreground
- How do you assign an output of a command to a variable
- How to perform mathematical calculations in shell script usning bc
- How to debug a shell script
- How to read a file one line at a time
- How to read a file one word at a time
- How do you check if a command has been successfully completed or not
- Write a while loop to print odd numbers.
- How to automate the file transfer from one machine to another
- What is the difference between kill -9 and kill commands
- How to change your login shell
- How to display line 4 till 10 from a file
- How to change a word named "Bill" to "Bob" in a file. - vi not allowed
- How to remove blank lines from a file.
- Can you create a hard link across filesystems
- What is the purpose of /dev/null file
- If I run ls -z > /dev/null Will anything be displayed on the terminal.
- How to capture stdout and stderr of a command to a same file
- What is the difference between "wc -l /etc/passwd" and "wc -l <
/etc/passwd
- How to find out the OS kernel you are running
- How to find out if your hardware supports 64 bit OS or not
- What command will delete all 0 byte files from your home directory
- What is the size of the internal hard-diskon your system
- How to schedule a specific command to run every 5 minutes on 1st day of every
month of the first financial quarter of a year. Assume that the financial year
starts on 1st of April.
|