1

download 1

of 7

description

bh

Transcript of 1

1

1What does the pkgadd command do? Install s/w

2How do you create a solaris package? pkgmk -o

3How do you view shared memory statistics? vmstat -S

4How do you get system diagnostics information? dmesg - collect system diagnostic messages to from error log.

5What is OBP and how do you access it? Open boot prom. Stop+A

6What is LOM and how do you access it? Lights of Management. We can login to the system configurations

7What is VTS? Validation test suite which is working for h/w testing purpose.

8What is an alternative to the top command on Solaris? prstat

9What is /etc/system for?

10What does ndd do? It is used to examine and set kernel module parameters, namely the TCP/IP drivers.

11What does init 5 do?

12What does init 0 do?

13How do you boot from CD-ROM?

14What is jumpstart? Jumpstart offers a way to install Solaris OS over multiple server with similar or different configurations.

15How do you boot from a Network with jumpstart? In OK prompt boot net -install

16What is JASS? JumpStart Architecture and Security Scripts

17What is the difference between NFS version 2 and NFS version 3? nfs 2 default 8kb transfer rate,it did not check theauthentication at the time connection.client wants to accessunauthorized file it shows error messages like "writeerror","read error"nfs 3 32kb transfer rate. It check at the timeconnection.ACL Support

18What is RPC? Why do I need it? RPC is simply known as "Remote Procedure Call".

19Are kernel parameters tunable during runtime?

20What does fmthard do?

21 List the files in current directory sorted by size ?ls -l | grep ^- | sort -nr

22 List the hidden files in current directory ?ls -a1 | grep "^\."

23 Delete blank lines in a file ?cat sample.txt | grep -v '^$' > new_sample.txt

24 Display the processes, which are running under yourusername ?ps aef | grep $USER ???

25 How to save man pages to a file ?man | col b > Example : man top | col b > top_help.txt

26 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.

27 How do you find out drive statistics ?iostat -E

28 Display top ten largest files/directories ? du -sk * | sort -nr | head

29 Display Ethernet Address arp table ? arp -a

30 Display the no.of active established connections to localhost ? netstat -a | grep EST

31 Display the state of interfaces used for TCP/IP traffice ?netstat -i

32 Display the parent/child tree of a process ? ptree Example: ptree 1267

33 Show the working directory of a process ? pwdx Example: pwdx 1267

34 Display the top most process utilizing most CPU ?top b 1

35 Alternative for top command ?prstat a

36 Display the page size of memory ?pagesize -a

37 Where are the failed login attemps to system logged?/var/adm/loginlog (We need to create this file as it does not exist by default)

38 Which command will show detailed information about a user?finger m

39 Which command displays all login and logouts?last (It reads the information from /var/adm/wtmpx file)

40 What is the StickyBit file permission?Sticky Bit permission protects the file within a public writable directory.File set with sticky bit will not allow any user to delete the file except the Owner of file, owner of the group or the root user.

41 How is ACL (Access Control Lists) implemented?getfaclcommand : To display an ACL on file.setfacl command : To set the ACL on file.setfacl m command : To modify ACL entries.setfacl s command : Remove old ACL entries and replace with new one.setfacl d command : Delete ACL entry.

42 what editor do you use? (hint: a wrong answer here will heavily

influence the interview... what is on ALL Unix systems? ;)

43 what shell do you use?

(hint: a wrong answer here will affect your chances)

44 what is the best shell for root?Best shell for root in unix is /sbin/sh

45 why is that the best shell for root?- /sbin/sh is statically linked and therefore has no external dependencies. This provides a minimal, safe environment; - /bin/sh, /bin/csh, etc. are dynamically linked and are therefore dependent on external libraries, usually found in /usr. These libraries must exist, must be intact, and must be the correct version.

46 list the operating systems you are familiar with and the versions.

47 how do you backup your system?

48 what commercial tools have you used for backup and archive?

49 what UID does root have across an NFS mount by default?

50 what file contains the mounted file systems in Solaris?/etc/mnttab

51 what file contains the mounted file systems in HP-UX?

52 what command identifies the NIS server you are bound to?ypwhich

53 what is the name of the administrative tool for Sun?

54 what is the name of the administrative tool for HP?sam

55 what is the name of the administrative tool for IBM?smit

56 if you are going to modify CDE files, which directory

should you edit:/usr/dt... or /etc/dt... ?

57 what differs between the NIS entry in the /etc/passwd

file btwn HP and Sun?

58 in Solaris 2.5 what is the name of the file with the NFS

exported files?

59 in Solaris 2.6 what is the name of the file with the NFS

exported files?

60 identify some differences btwn CDE in Solaris 2.6 and

Solaris 2.7?

61 How can you tell what is attached to the SCSI chain on a

Sun system?

62 How can you tell what is attached to the SCSI chain on an

HP system?

63 What command will tell you have much memory a system has

in Solaris?

64 What command will tell you have much memory a system has

in HP-UX?

65 Where are system messages logged in Solaris?/var/adm/messages

66 Where are system messages logged in HP-UX?

67 How would you "break" an NFS mount on a system that has users on it?

68 Explain how you could stop and start a process without rebooting?

69 What command will tell you how long a system has been running?The uptime command shows how long a system has been running

70 What is LVM?

71 what is an HFS?

72 what is fsck?

73 what is Jxfs or Vxfs?

74 how do you get a Sun system to single user mode?

75 how do you get an HP system to single user mode?

76 What files control basic hostname and network information on a Sun?

(hint: 3)

77 What files control basic hostname and network information on an HP?

(hint: 2)

78 What command will provide status of your filesystems on a Sun?

79 What command will provide status of your filesystems on a HP?

80 What command will provide status of your filesystems on a Linux

system?

81 What file do you edit to permit non-console login of root on a

Solaris system?/etc/default/login

82 What file (with path) contains the information that appears when you right click on the background of a CDE login?

83 What command, with path, launches OpenWindows on a SunOs 4.1.3 system?

84 What command provides information on the health and performance of NFS?

85 What command provides information on your network connection?

86 What are some of the tags in HTML that do not require a closing tag?

87 What command can you use to find the path to an application?

88 What option can you use with FTP to automatically transfer using

wildcards?

89 What character(s) show up in an ascii file created in MSDos or

Windoze when FTP'd in Binary mode?

90 What does the ioscan command do?

91 What does the lanscan command do?

92 What command in Solaris shows disk partitions?

93 What are the tar commands to display the contents of an archive?

94 What directory are programs like perl and netscape installed in?

95 What is the recommended ratio of swap to memory for X-windows?

96 What command tells you who is logged into a file system?

97 What is the command to shutdown and halt a Sun system?

98 What is the command to shutdown and halt an HP system?

99 How do you mount a filesystem?

100 What command can you use to identify a hostname or ip address?

101What character is used to launch an application and run it in the

background?

102What command lists the current running jobs?

103How do you kill a running job?

104Where are startup scripts for an HP-UX 10.20 system?

105Where are startup scripts for a Solaris 2.6 system?

106What command is used to display NIS host information for an

IP address?