Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Unix Questions

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Commands

User/Groups management 1. How can you add user with the following parameters: $uid, $gid, $home? 2. How can you delete user with $username? Without deleting users home directory? 3. How can you change password of particular user? 4. Where passwd file usually located is and what it is responsible for? 5. Where shadow file usually located is and what it is responsible for? 6. Where group file usually located is and what it is responsible for? 7. How can you see a list of users who are currently logged into a computer? 8. How will you assign superuser privilege to an ordinary user temporarily?

File System 1. Where is fstab file usually located and what it is responsible for? 2. Where is mtab file usually located and what it is responsible for? 3. fsck: How can you check the particular partition in a case of I/O errors occurs? 4. mount: How can you mount some device? 5. Swap partition. What is it responsible for? 6. How can you check the size of particular partition? 7. Where are the logfiles located in Unix? 8. What is common log files names and its usage? 9. How can you explain log rotating procedure? How log rotating can be configured? 10.What is cron? How can you configure cron to update locate db every 30 minutes?

Commands for files/directory managements. Permissions. 1. How can you search for particular command? 2. Please explain the difference between absolute and relative paths?

3. How can you create a directory? 4. How can you create empty file? 5. Please explain the meaning of permission. 6. How can you change owner for directory with all subdirectories and files in it? 7. How can you change permissions for the directory with all subdirectories and files in it? 8. How can you see the list of all files/directories in the current folder? 9. Can you explain listening of command ls -la? 10.How can you copy a directory with all content and permissions? 11.How can you create a sym link (soft link) to file/folder? 12.How can you see last 4 lines of file? 13.How can you see the path to the current directory? 14.How can you merge two files into the new one? 15.How can you know the size of the particular file/directory? 16.How can you find the particular file? 17.Please explain the difference between find and locate command? Which one work faster? 18.How can you find a particular word in files located in the current directory? 19.Is it possible to count number chars, lines or words in a file; if so, How? 20.How can you delete particular directory? 21.What is the difference between > and >> redirection operators?

Process management 1. How can you see all process currently running on the system? 2. How can you see the user who run the process with $id? 3. How can you see system resource usage (sort by memory/cpu usage)? 4. What is a zombie process? 5. How can you stop (kill) zombie process?

Package management (rpm) 1. How can you install/delete/update package? 2. How can you check whether particular package is installed? 3. How can you see the list of files which were installed with particular package? 4. How can you search which package installed particular file? 5. What is package dependency?

Network Basis: 1. What is IP address? 2. How can you add/remove additional IP? 3. How can you configure IP to be bound on the boot? 4. What is subnet mask? 5. What is DNS? How it works? 6. How you can set hostname so that it wont be lost on boot? 7. Where resolve.conf file located is and what it is responsible for? 8. Where hosts file located is and what it is responsible for? 9. What is network interface? 10.How can you see all network interfaces bound on the server? 11.How can you check that particular host is up/down? 12.How can you see full route to the particular host? 13.How can you connect to remote host with username/passwd? SSH daemon configured to listen on the xxx port? 14.How can you check domain info for particular host?

Text editor vi

Services
For each services you should know the following main configuration file (location, name) default port and how to change it main directives of main configuration file startup script (name, location) log files (name location) what the service is for and how it works

List of services

1. Apache 2. DNS (bind) 3. Mail (qmail, sendmail, postfix. at least one) 4. SQL (mysql, postgresql. At least one) 5. FTP (vsftpd, proftpd. At least one) 6. SSHD 7. Syslog

You might also like