Top 100+ Unix/xenix Interview Questions And Answers
Question 1. What Is Unix?
Answer :
It is a transportable working machine this is designed for both efficient multi-tasking and mult-user features. Its portability allows it to run on distinct hardware platforms. It became written is C and lets consumer do processing and control below a shell.
Question 2. What Are Filters?
Answer :
The time period Filter is regularly used to consult any software which can take enter from fashionable enter, carry out a few operation on that enter, and write the results to standard output. A Filter is also any application that may be used between two different applications in a pipeline.
Perl Scripting Interview Questions
Question 3. What Is A Typical Syntax Being Followed When Issuing Commands In Shell?
Answer :
Typical command syntax underneath the UNIX shell follows the layout:
Command [-argument] [-argument] [–argument] [file]
Question 4. Is There A Way To Erase All Files In The Current Directory, Including All Its Sub-directories, Using Only One Command?
Answer :
Yes, this is possible. Use “rm –r *” for this purpose. The rm command is for deleting documents. The –r option will erase directories and subdirectories, inclusive of documents within. The asterisk represents all entries.
Perl Scripting Tutorial
Question 5. What Is The Chief Difference Between The –v And –x Option S To Set?
Answer :
The –v alternative echoes every command before arguments and variables have been substituted for; the –x choice echoes the instructions after substitution has taken area.
Shell Scripting Interview Questions
Question 6. What Is Kernel?
Answer :
Kernel is the UNIX working machine. It is the master program that controls the computer’s resources, shelling out them to specific customers and to exclusive obligations. However, the kernel doesn’t deal immediately with a consumer. Instead, it starts up a separate, interactive software, called a shell, for every user whilst he/she logs on.
Question 7. What Is Shell?
Answer :
A shell acts as an interface among the person and the gadget. As a command interpreter, the shell takes commands and units them up for execution.
Shell Scripting Tutorial Python Interview Questions
Question eight. What Are The Key Features Of The Korn Shell?
Answer :
records mechanism with integrated editor that simulates emacs or vi
integrated integer mathematics
string manipulation abilities
command aliasing
arrays
process manipulate
Question 9. What Are Some Common Shells And What Are Their Indicators?
Answer :
sh – Bourne shell
csh – C SHell
bash – Bourne Again Shell
tcsh – greater C Shell
zsh – Z SHell
ksh – Korn SHell
Core Java Interview Questions
Question 10. Differentiate Multiuser From Multitask?
Answer :
Multiuser approach that a couple of character can use the laptop at the identical time. Multitask method that even a unmarried person could have the computer paintings on multiple assignment or software on the same time.
Python Tutorial
Question 11. What Is Command Substitution?
Answer :
Command substitution is one of the steps being finished each time instructions are processed by using the shell. Commands which can be enclosed in backquotes are executed via the shell. This will then update the usual output of the command and displayed at the command line.
Linux Interview Questions
Question 12. What Is A Directory?
Answer :
Every file is assigned to a directory. A directory is a specialised shape of document that continues a list of all files in it.
Perl Scripting Interview Questions
Question thirteen. What Is Inode?
Answer :
An inode is an access created on a phase of the disk set apart for a file device. The inode incorporates nearly all there's to understand approximately a file, which includes the area at the disk where the record starts, the size of the record, whilst the record changed into last used, while the report was ultimate modified, what the various read, write and execute permissions are, who owns the document, and other data.
Core Java Tutorial
Question 14. You Have A File Called Tonky In The Directory Honky. Later You Add New Material To Tonky. What Changes Take Place In The Directory, Inode, And File?
Answer :
The listing access is unchanged, because the name and inode variety remain unchanged. In the inode file, the report size, time of final get right of entry to, and time of final modification are up to date. In the document itself, the brand new material is added.
Question 15. Describe File Systems In Unix?
Answer :
Understanding report systems in UNIX has to do with understanding how files and inodes are saved on a device. What occurs is that a disk or portion of a disk is set apart to shop documents and the inode entries. The whole useful unit is called a record gadget.
Linux Embedded systems Interview Questions
Question sixteen. Differentiate Relative Path From Absolute Path?
Answer :
Reative path refers back to the path relative to the contemporary direction. Absolute path, on the other hand, refers to the precise path as referenced from the foundation listing.
Linux Tutorial
Question 17. Explain The Importance Of Directories In A Unix System?
Answer :
Files in a listing can truly be a directory itself; it'd be known as a subdirectory of the unique. This functionality makes it possible to develop a tree-like shape of directories and documents, that's essential in retaining an organizational scheme.
Red Hat Linux System Administration Interview Questions
Question 18. Briefly Describe The Shell’s Responsibilities?
Answer :
software execution
variable and report name substitution
I/O redirection
pipeline hookup
surroundings manage
interpreted programming language
Shell Scripting Interview Questions
Question 19. What Are Shell Variables?
Answer :
Shell variables are a mixture of a call ( identifier), and an assigned value, which exist within the shell. These variables can also have default values, or whose values may be manually set using the ideal task command. Examples of shell variable are PATH, TERM and HOME.
Linux Embedded systems Tutorial
Question 20. What Are The Differences Among A System Call, A Library Function, And A Unix Command?
Answer :
A machine name is a part of the programming for the kernel. A library characteristic is a application that is not a part of the kernel but which is available to users of the system. UNIX commands, however, are stand-alone applications; they'll contain each device calls and library capabilities in their programming.
IBM AIX Interview Questions
Question 21. What Is Bash Shell?
Answer :
It is a unfastened shell designed to work at the UNIX gadget. Being the default shell for most UNIX-based totally systems, it combines functions which can be to be had each within the C and Korn Shell.
Question 22. Enumerate Some Of The Most Commonly Used Network Commands In Unix?
Answer :
telnet – used for faraway login
ping – an echo request for trying out connectivity
su – consumer switching command
ftp – record switch protocol used for copying documents
finger – facts collecting command
Javascript Advanced Tutorial
Question 23. Differentiate Cmp Command From Diff Command?
Answer :
The cmp command is used especially to compare files byte by way of byte, after which the first encountered mismatch is proven. On the other hand, the diff command is used to suggest the modifications this is to be made so that it will make the 2 files same to each other.
Sybase Interview Questions
Question 24. What Is The Use Of -l When Listing A Directory?
Answer :
-l, which is normally utilized in listing command like ls, is used to reveal documents in an extended format, one file consistent with line. Long format refers to extra records that is related to the document, which includes possession, permissions, statistics and filesize.
Python Interview Questions
Question 25. What Is Piping?
Answer :
Piping, represented through the pipe individual “to combine two or more commands collectively. The output of the primary command serves as input the next command, and so forth.
Question 26. What Is A Superuser?
Answer :
A superuser is a unique kind user who has open get entry to to all files and instructions on a gadget. Note that the superuser’s login is normally root, and is blanketed with the aid of a so-referred to as root password.
Autosys Interview Questions
Question 27. How Do You Determine And Set The Path In Unix?
Answer :
Each time you input a command, a variable named PATH or direction will outline wherein listing the shell will search for that command. In instances wherein an errors message was returned, the purpose perhaps that the command turned into no longer on your course, or that the command itself does not exist. You also can manually set the direction using the “set course = [directory path]” command.
Core Java Interview Questions
Question 28. Is It Possible To See Information About A Process While It Is Being Executed?
Answer :
Every system is uniquely identified through a procedure identifier. It is possible to view information and standing concerning a process with the aid of the usage of the playstation command.
Question 29. What Is The Standard Convention Being Followed When Naming Files In Unix?
Answer :
One important rule when naming files is that characters which have unique meaning aren't allowed, including * / & and %. A directory, being a special kind of file, follows the same naming convention as that of files. Letters and numbers are used, along with characters like underscore and dot characters.
Javascript Advanced Interview Questions
Question 30. Why Is It That It Is Not Advisable To Use Root As The Default Login?
Answer :
The root account is very vital, and with abusive utilization, can without problems result in system damage. That’s due to the fact safeguards that normally apply to person money owed aren't relevant to the basis account.
Question 31. What Is The Use Of The Tee Command?
Answer :
The tee command does two things: one is to get information from the same old input and ship it to conventional output; the second one is that it redirects a replica of that enter facts into a file that became exact.
Question 32. Differentiate Cat Command From More Command?
Answer :
When the use of the cat command to show document contents, massive data that does not healthy at the display might scroll off with out pausing, consequently making it hard to view. On the alternative hand, the usage of the extra command is greater suitable in such instances because it will show file contents one display page at a time.
Unix Shell Scripting Interview Questions
Question 33. What Is Parsing?
Answer :
Parsing is the method of breaking apart of a command line into phrases. This is made possible via using delimiters and areas. In the event that tabs or multiple areas are a part of the command, these are eventually changed by a single area.
Linux Interview Questions
Question 34. What Is Pid?
Answer :
Pid is brief for Process ID. It is used more often than not to identify each system that runs at the UNIX system, whether or not it runs at the foreground or runs at the history. Every pid is taken into consideration unique.
Question 35. How Does The System Know Where One Command Ends And Another Begins?
Answer :
Normally, the newline character, that is generated by means of the ENTER or RETURN key, acts because the signpost. However, the semicolon and the ampersand characters also can serve as command terminators.
Question 36. What Is Wild-card Interpretation?
Answer :
When a command line contains wild-card characters consisting of ‘*’ or ‘?’, those are changed by means of the shell with a looked after list of files whose pattern matches the enter command. Wild-card characters are used to setup a listing of documents for processing, as a substitute of having it particular one at a time.
Linux Embedded structures Sort –logfile > Newfile?
Answer :
In this command, the output from the command “who” becomes the enter to the “type” command. At the same time, “kind” opens logfile, arranges it collectively with the output from the command “who”, and locations the final looked after output to the file newfile.
Question 38. How Do You Switch From Any User Type To A Super User Type?
Answer :
In order to exchange from any person type to a superuser, you operate the su command. However, you'll be asked to key in the ideal superuser password before full get admission to privileges are granted to you.
Question 39. What Would Be The Effect Of Changing The Value Of Path To: .:/usr/della/bin: /bin: /usr/bin
Answer :
This would reason the shell to look inside the /usr/della/bin directory after looking in the cutting-edge directory and earlier than looking in the /bin directory while trying to find a command file.
Question forty. Write A Command That Will Display Files In The Current Directory, In A Colored, Long Format.
Answer :
ls -l –shade
Red Hat Linux System Administration Interview Questions

