Arjit
Arjit
Arjit
INTERVIEW QUESTIONS
1. Explain virtual desktop?
Answer: When there are multiple windows available on the current desktop and there appears
the problem of minimizing and maximizing windows or restoring all the current programs, there
‘Virtual Desktop’ serves as an alternative. It allows you to open one or more programs on a clean
slate.
Virtual desktops are basically stored on a remote server and serve the following benefits:
Virtual desktops are basically stored on a remote server and serve the following benefits
Cost savings as the resources can be shared and allocated as and when required.
Resources and energy are more efficiently used.
Data integrity is improved.
Centralized administration
Fewer compatibility issues.
2. Explain /proc file system?
Answer: /proc is a virtual file system that provides detailed information about Linux kernel,
hardware, and running processes. Files under /proc directory named as Virtual files.Since /
proc contains virtual files, it is called the virtual file system. These virtual files have unique
qualities. Most of them are listed as zero bytes in size.Virtual files such as /
proc/interrupt, /proc/meminfo, /proc/mounts, and /proc/partitions provide an up-to-the-moment
glimpse of the system’s hardware. Others: /proc/filesystems file and the /proc/sys/ directory
provide system configuration information and interfaces.
3. What is LILO?
Answer: LILO is Linux Loader is a boot loader for Linux. It is used to load Linux into the memory
and start the Operating system. LILO can be configured to boot other operating systems as well.
LILO is customizable, which means that if the default configuration is not correct, it can be
changed. Config file for LILO is lilo.conf.LILO is also a code snippet which loads PC BIOS into the
main memory
at the time of starting the computer system. It handles the following tasks:
1. Locating the Linux kernel.2. Identifying other supporting programs and loading them in
memory.
3. Starting Kernel.
The selection of various kernel images and boot routines is supported by LILO. For this reason, it
is known as the boot manager.
fi f f f
troubleshooting, users can find it useful for checking if the wrong environment variable prevents
your application from starting.
env Command Example:
$ envPYTHON_PIP_VERSION=9.0.1
HOME=/root
DB_NAME=test
PATH=/
usr/local/bin:/usr/local/binLANG=C.UTF-8
PYTHON_VERSION=3.4.6
PWD=/
DB_URI=mongodb://database:27017/test
13. What command is used to check the number of files, disk space, and each user’s
defined quota?
Answer: repquota command is used to check the status of the user’s quota along with the disk
space and number of files used.This command gives a summary of the user’s quota that how
much space and files are left for the user. Each user has a defined quota in Linux. This is done
mainly for security as some users have only limited access to files. This provides security to the
files from unwanted access. The quota can be given to a single user or to a group of users.
15. If a volume group named VG0 already exists and we need to extend this volume group
up to 4GB. How will you do it?
Answer:Firstly create Physical volume (/
dev/sda7) of size 4GB.
Now run following command.
vgextend VG0 /dev/sda7
21. Which command would you use if you want to remove the password assigned to a
group?
Answer:
BASH commands are case sensitive while DOS commands are notBASH follows no convention in
naming files, while DOS follows a convention
Under BASH, / character serves as a directory separator while in DOS serves as the directory
separator
Blackbox = blackbox.FVWM =
fvwmWindow Maker =
wmaker.
IceWM = icewm
30. What is the name and path of the main system log?
Answer: By default, the main system log is ‘/var/log/messages’. This file contains all the
messages and the script written by the user. By default, all scripts are saved in this file. This is the
fi f f
standard system log file, which contains messages from all system software, non-kernel boot
issues, and messages that go to ‘dmesg’. dmesg is a system file that is written upon system boot.
31. What are System Startup Scripts?
Answer: By default, Linux and UNIX come with system initialization script but they are located in
different directories:
HP-UX – /sbin/init.dAIX – /
etc/rc.d/init.dLinux – /
etc/init.d
32. What are the some UNIX Operating System Names?
Answer:By default, Linux and UNIX come with system initialization script but they are located in
different directories:
HP-UX – /sbin/init.dAIX – /
etc/rc.d/init.dLinux – /
etc/init.d
The more intuitive and rich interface is possible to be created.Fewer chances of occurrence of
errors as complex, multi-step, dependent tasks are easily grouped together.
Productivity is enhanced with the means of multitasking as with a simple click of the mouse, the
user is able to maintain multiple open applications and transitions between them.
Disadvantages of GUI
:End-users have less control over the operating system and file systems.
Although it is easier to use a mouse and keyboard for navigation and controlling the operating
system, the whole process is a bit slow.
It requires more resources because of the elements that need to be loaded such as icons, fonts,
etc.
35. What is the maximum length for any file name under LINUX?
Answer:The maximum length for any filename under Linux is 255 characters.
38. Explain the Linux Directory commands along with the description?
Answer: Enlisted below are the directory commands along with descriptions
pwd: It is a built-in command which stands for ‘print working directory’. It displays the current
working location, working path starting with / and directory of the user. Basically, it displays the
full path to the directory you are currently in.
Is: This command list out all the files in the directed folder.
cd: This stands for ‘change directory’. This command is used to change to the directory you want
to work from the present directory. We just need to type cd followed by the directory name to
access that particular directory.
mkdir: This command is used to create an entirely new directory.
rmdir: This command is used to remove a directory from the system.
39. What is the root account?
Answer: The root account is like a system administrator account. It provides you full control of
the system. You can create and maintain user accounts, assign different permission for each
account, etc.
Read: This permission allows you to open and read the file as well as list the contents of the
directory.Write: This permission allows you to modify the contents of the file as well as allows
adding, removing and renaming files stored in the directories.
Execute: User can access and run the file in the directory. You cannot run a file unless the
execute permission is set.
41. How do you create a new user without logging on as a root user?
Answer: Using the sun command