You are on page 1of 10

Linux interview qns 1.Linux cmd to give default permission for Files and directories 2.

diff soft link vs hard link 3.diff soft mount and hard mount 4.how to change the default run level and jump to the run level without rebooting the server 5.share the /share1 dir with NFS for 192.168.0.*/255.255.255.0 alone with read only permission without disturbing the other shares on the nfs server 6.steps to create a swap file 7.Linux performance monitoring tools 8.cmd to view the result of last executed cmd in linux 9.cmd to change the permission of a file ,even root cannot delete that file 10.port no http and https

11.how to change the def port no for http in squid (80) with 8080 12.how to share /share2 dir to windows client with read only access to ip 192.168.0.1/255.255.255.0 13.cmd to view the tar files without extracting 14.cmd to list all files and directory in a tree structure 15.cmd to view the files created for the past 30 min alone 16.how to import jsp serlets in apche web server 17.how to block ssh for 192.168.1.0 and allow others 18.cmd to query the package name with the file name 19.what is an inode 20.how to run the script share.sh for every 10 min.

21.how to block packets from 192.168.0.1 using ip tables 22.cmd to change the process priority to maximum level. 23.disadvantage of the process where child process remains and parent process is dead 24.how to set the environmental variable for /home dir 25.colums available in the password file 26.how to assign same ip address for two or more ethernet interfaces 27.name and location of the of the etho adaptor 28.cmd to check the current login shell 29.cmd to view the services that are loaded for the run level 2 30.diff between run level 2 and run level 3 31.cmd to view the last loggind users

how to create swap with a file ?

how to create a file which root user also cant able to delete? how to create default permission while create a file? how to install from tar? how to view tar file without extracting? what commands to list all the file? tar backed to questions? How to block the Ip 192.168.0.1 using the IPtables ? Port number for HTTP & HTTPS ? How to run jsp serlvet in apache? How to block SSH for 192.168.1.0 except 192.168.1.1? How to check all the installed packages? what is difference between hard link and soft link? How to add the 192.168.1.1 in nfs sharing?

what is difference between hard mount and soft mount? How do check the performance monitoring? How to run the script /test.sh for every 10 min? what is an inode? How to check the last command is executed successfully? How to know the last user access or login into the server? How to know last 30 days files accessed ? How to check shell your using? How to check current runlevel? How to set the default runlevel and change to the default runlevel without rebooting the server ? what is difference between runlevel 2 and run level 3 ? How to do troubleshoot if the gui mode is not working ?

what is difference between layer 2 and layer 3 network device? How to check the routing table in linux? How to create multiple interface with eth0? How to mount the nfs share ? how will you find out the system model what is virtual network explain KVM in detail what is difference between nfsv3 and nfsv4 what is difference between rhel 5 and rhel 6 how wil you check io statistics what is swap and how will you configure it what is LVM and explain the complete procedure of configuring it how wil you configure yum repository what is mapper

what is file locking feature Crontab related questions Rpm querie Directory for LVM? How to forcefully unmount the /mnt directory? How to find the system process? Give different permissions of two users for a single file? How to check package which is installed or not? How to block ICMP port using IP tables? Useradd and groupadd function script How to extend LVM? What are day today activities in your company? rsync command Samba server Kickstart Logrotate

answers: 1) The port numbers are divided into three ranges: the well-known ports, the registered ports, and the dynamic or private ports. The well-known ports are those from 0 through 1023. Examples include:

20 & 21: File Transfer Protocol (FTP) 22: Secure Shell (SSH) 23: Telnet remote login service 25: Simple Mail Transfer Protocol (SMTP) 53: Domain Name System (DNS) service 80: Hypertext Transfer Protocol (HTTP) used in the World Wide Web

110: Post Office Protocol (POP3) 119: Network News Transfer Protocol (NNTP) 143: Internet Message Access Protocol (IMAP) 161: Simple Network Management Protocol (SNMP) 443: HTTP Secure (HTTPS) 465: SMTP Secure (SMTPS) The registered ports are those from 1024 through 49151. IANA maintains the official list.[2] The dynamic or private ports are those from 49152 through 65535. One common use is for ephemeral ports.