An operating system co-created by AT&T researchers Dennis Ritchie and Ken Thompson. Unix is well known for its relative hardware independence and portable application interfaces. Lots of big companies are using Unix servers for its reliability and scalability. Some of the popular Unix flavours are: Linux, Solaris, HP-UX, AIX, etc.
The Open Group holds the definition of what a UNIX system is and its associated trademark in trust for the industry.
The UNIX* operating system was designed to let a number of programmers access the computer at the same time and share its resources.
The operating system coordinates the use of the computer's resources, allowing one person, for example, to run a spell check program while another creates a document, lets another edit a document while another creates graphics, and lets another user format a document -- all at the same time, with each user oblivious to the activities of the others.
The operating system controls all of the commands from all of the keyboards and all of the data being generated, and permits each user to believe he or she is the only person working on the computer.
This real-time sharing of resources make UNIX one of the most powerful operating systems ever.
Unix OS Interviews are getting tough these days as the technology grows faster. To get through the Unix OS interview one needs to update him/herself in a regular manner. Having said that, just before the interview, it is very important to have a quick glance of the reputed Unix OS questions and answers to make yourself comfortable during the interview process. This is where DoAnswers.com helps you in renewing yourself on Unix OS and various other technologies interview preparation.
41. How to know the date & time for . when script is executed ?
Add the following script line in shell script.eval echo "Script is executed at `date`" >> timeinfo.infHere, .timeinfo.inf. contains date & time details ie., when script is executed and history related to execution.
42. How to save man pages to a file ?
man | col .b > Example : man top | col .b > top_help.txt
43. How to see your server name
hostname
44. how to sfind free space in unix/linux
on linuxfree -m will display free memory in MB 'df' and 'du' commands give the information about space.df -k df -h or df -Humanreadable gives human readable format of free space
45. How to switch to a super user status to gain privileges?
Use ?su? command. The system asks for password and when valid entry is made the user gains super user (admin) privileges.
46. How to terminate a process which is running and the specialty on command kill 0?
With the help of kill command we can terminate the process. Syntax: kill pid Kill 0 - kills all processes in your system except the login shell.
47. How would you create shared and dynamic libraries
Well shared libraries have 2 types 1) Static 2) Dynamic. u can create library by ar cr -o sharedobj.a file1.o file2.o while file1 and file2 are headfiles (obj) now put this sharedobj.a into /usr/lib directory
48. How would you remove a semaphore / shared memory whose owner processes have died?
ipcrm -sem id ; for semaphores ipcrm -shm id ; for shared mem
49. If you have a string "one two three", which shell command would you use to extract the strings
echo $string | cut -d" " -f1 echo $string | cut -d" " -f2 echo $string | cut -d" " -f3 echo "one two three" | cut -d" " -f 1,2,3 or echo "one two three" | awk '{print $1 $2 $3}'
50. In Unix OS, what is the file server?
The file server is a machine that shares its disk storage and files with other machines on the network.