Sponsored Content
Full Discussion: Unix Interview Questions
Top Forums UNIX for Dummies Questions & Answers Unix Interview Questions Post 302095668 by foxmulder123 on Thursday 9th of November 2006 03:17:48 AM
Old 11-09-2006
Unix Interview Questions

Please please if anyone has time to answer them, this noob would highly appreciate it. Thanks in advance.

1. whats $# in a shell script
2. whats a $* in shell script
3. Explain nohup with an example
4. If $1 is the first parameter, whats $0
5. How do you see the return code of the last executed command
6. Explain Cron with an example
7. what is rsync
8. Whats the advantage of using ssh over telnet?
9. Have you used vi? provide example of searching an expression across multiple files (say *.sh) from within vi
10. How can i find all /tmp/*.zip and move them to, say, /home/to_examine (assuming the target already exists?)
11. Whats the kill command used for? Whats the difference between kill and kill -9
12. Whats the "nice" command used for
13. Provide a regular expression for searching email addresses within a script file
14. Compare /etc/fstab and /etc/mtab
15. What do you know of inodes?
16. Compare Unix FS with, say, Windows/DOS FS
17. Does UNIX FS require defraging? If yes, whats the command. If no, why? ;-)
18. How do you redirect std error to std output?
19. whats the command line for listing the names of the 10 biggest files under /home/
 

9 More Discussions You Might Find Interesting

1. Solaris

Interview Questions

hi everybody, my name is samir, i m from delhi,india. i m a student in solaris. just few days ago i had completed my course. can anybody tell me the possible interview questions in solaris. (1 Reply)
Discussion started by: samir_sinu
1 Replies

2. Solaris

Solaris 10 Interview Questions?

Hey, My company is looking to bring on a Sr. UNIX Admin with Solaris 10 experience. What are some solid interview questions I could ask about UNIX and Solaris 10 that would weed a good guy out from a bad? Questions that don't involve long command lines would be the best. Thanks (1 Reply)
Discussion started by: mikepatton21
1 Replies

3. UNIX for Dummies Questions & Answers

Unix Experts Answer this INterview Questions please

1, why Boot server should be in a network in jumpstart? 2, what is the different between patch and package? 3, how to list the avilable NIC in solaris9? 4, User complaing system is slow (solaris) what are the steps to check? 5, what is hardware error and software error and Transport Error? in... (5 Replies)
Discussion started by: suresh_krish
5 Replies

4. Solaris

Solaris Interview Questions

Hi, Can anyone tell me which is the good site for solaris interview questions. Let me know if anyone has some material on the same. Thanks in advance. (1 Reply)
Discussion started by: amult
1 Replies

5. Solaris

Interview questions

Hi guys, Interview Questions:- 1) There are 2 ways to create a slice in Solaris 1) we can create using format command but there say other than format 1more within sec. we can create a slice. 2) ? 2) How to create a temperory SWAP Space 3) How to check the Devices from the... (2 Replies)
Discussion started by: kurva
2 Replies

6. Red Hat

interview questions..plz help

hello, I have some doubts .plz help if i try to ping from a server, it doesnt ping & gives different ip address, and in nslookup i get different ip address, what is the problem ? if u cant ssh to a server what will be ur steps ? give full iptables command to open port 22 ... (1 Reply)
Discussion started by: abhigrkist
1 Replies

7. UNIX for Dummies Questions & Answers

Interview topics or questions for unix developers with 4.years experience

Hi , I am gonna attend interview this week end for unix developer ( 4.5 years exp) opening .. Can you help me out the topics or the questions which I can expect in the interview. This is may be silly but it is very important to me. Thanks in Advance (5 Replies)
Discussion started by: arukuku
5 Replies

8. UNIX for Dummies Questions & Answers

Require interview questions on UNIX

Hi Unix experts, I require interview questions on UNIX. Tomorrow I have to interview a guy of 2yrs experienced. So I require the Q&A's. Please provide the questions in a manner from Basics to Advanced with grading. We mostly use that guy for Unix shell scripting (support, maintenance). ... (1 Reply)
Discussion started by: karumudi7
1 Replies

9. UNIX for Advanced & Expert Users

Interview questions and answers on HP Unix administration

Hi, Can some body help me to get Interview questions and answers on HP Unix administration? Thanks Krsnadasa (1 Reply)
Discussion started by: krsnadasa
1 Replies
exit(1) 							   User Commands							   exit(1)

NAME
exit, return, goto - shell built-in functions to enable the execution of the shell to advance beyond its sequence of steps SYNOPSIS
sh exit [n] return [n] csh exit [ ( expr )] goto label ksh *exit [n] *return [n] DESCRIPTION
sh exit will cause the calling shell or shell script to exit with the exit status specified by n. If n is omitted the exit status is that of the last command executed (an EOF will also cause the shell to exit.) return causes a function to exit with the return value specified by n. If n is omitted, the return status is that of the last command exe- cuted. csh exit will cause the calling shell or shell script to exit, either with the value of the status variable or with the value specified by the expression expr. The goto built-in uses a specified label as a search string amongst commands. The shell rewinds its input as much as possible and searches for a line of the form label: possibly preceded by space or tab characters. Execution continues after the indicated line. It is an error to jump to a label that occurs between a while or for built-in command and its corresponding end. ksh exit will cause the calling shell or shell script to exit with the exit status specified by n. The value will be the least significant 8 bits of the specified status. If n is omitted then the exit status is that of the last command executed. When exit occurs when executing a trap, the last command refers to the command that executed before the trap was invoked. An end-of-file will also cause the shell to exit except for a shell which has the ignoreeof option (See set below) turned on. return causes a shell function or '.' script to return to the invoking script with the return status specified by n. The value will be the least significant 8 bits of the specified status. If n is omitted then the return status is that of the last command executed. If return is invoked while not in a function or a '.' script, then it is the same as an exit. On this man page, ksh(1) commands that are preceded by one or two * (asterisks) are treated specially in the following ways: 1. Variable assignment lists preceding the command remain in effect when the command completes. 2. I/O redirections are processed after variable assignments. 3. Errors cause a script that contains them to abort. 4. Words, following a command preceded by ** that are in the format of a variable assignment, are expanded with the same rules as a vari- able assignment. This means that tilde substitution is performed after the = sign and word splitting and file name generation are not performed. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
break(1), csh(1), ksh(1), sh(1), attributes(5) SunOS 5.10 15 Apr 1994 exit(1)
All times are GMT -4. The time now is 05:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy