100% found this document useful (2 votes)
777 views12 pages

Trendnxt Linux l1

The document contains questions and answers related to Linux administration. It covers topics like filesystems, users and groups, networking, storage, and other Linux commands.

Uploaded by

Priyanka Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
777 views12 pages

Trendnxt Linux l1

The document contains questions and answers related to Linux administration. It covers topics like filesystems, users and groups, networking, storage, and other Linux commands.

Uploaded by

Priyanka Yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

/dev is the location

Device drivers ------------->>>>>>>> ANSWER


device files.
Kernel modules

which daemon is necessary for NFS


nfsd ------------->>>>>>>> ANSWER
mountd
lockd
statd

command to create the snap of logical volume


lvcreate ------------->>>>>>>> ANSWER
lvchange
lvdisplay
lvscan

Which file is used for configurations of DNS servers ip in client machine


/etc/resolv.conf ------------->>>>>>>> ANSWER
/etc/resolve.conf
/etc/dns/resolv.conf
/etc/dnsclinents.conf

Command used to view all the mounted partitions along with accessible permissions
df h
mounts
cat /proc/mounts ------------->>>>>>>> ANSWER
fdisk –l

Configuration file to set runlevels


/etc/inittab ------------->>>>>>>> ANSWER
/etc/init/rc.d

Which command shows partition id and type in unix


fdisk -l ------------->>>>>>>> ANSWER
df -h
/proc/part

Command used to show default routing table


Netstat -rn ------------->>>>>>>> ANSWER
Netstat –in
Default shell in linux
Bash ------------->>>>>>>> ANSWER
csh

Which file is responsible to allow host for remote access


/etc/hosts
/etc/host
/etc/hosts.allow ------------->>>>>>>> ANSWER
/etc/hosts.deny

Command to see last 5 commands run from history


last
history -5
history 5 ------------->>>>>>>> ANSWER

Command to modify the secondary group for existing user in Rhel 5


useradd
usermod ------------->>>>>>>> ANSWER
useradd –g
modprobe

You have a user user1 and you want to add him to sysusers as a secondary group of users
usermod –G sysusers user1 ------------->>>>>>>> ANSWER
usermod –g sysusers user1

The file which can be used to link across filesystems


Softlink ------------->>>>>>>> ANSWER
Hardlink
FIFO
Socket

Command to display the Shell Environment variables in linux


shell
env ------------->>>>>>>> ANSWER
echo set
bash

How to change a runlevel of a service


runlevel
chkconfig ------------->>>>>>>> ANSWER
service

If you want to forcefully umount the Filesystem directory /data of /dev/sdb1


fuser -l /data
fuser –l /data /dev/sdb1
umount –f /data ------------->>>>>>>> ANSWER
fuser –km /data
none

################# LINUX ADMIN - L1 ################

=======================================================================
/dev is the location
Device drivers
device files.
Kernel modules

device files

=======================================================================

which daemon is not necessary for NFS service


nfs
mountd
lockd
statd

nfs

=======================================================================

command to create the logical snap of logical volume


lvcreate
lvchange
lvdisplay
lvscan

lvcreate
=======================================================================

Which file is used for configurations of DNS servers ip in client machine


/etc/resolv.conf
/etc/resolve.conf
/etc/dns/resolv.conf
/etc/dnsclinents.conf

/etc/resolv.conf

=======================================================================

Command used to view all the mounted partitions along with accessible permissions
df h
mounts
cat /proc/mounts
fdisk –l

df -h

=======================================================================

Configuration file to set runlevels


/etc/inittab
/etc/init/rc.d

/etc/inittab

=======================================================================

Command gives more detailed information of mountpoint which are mounted on server
df h
mounts
cat /proc/mounts
fdisk –l

cat /proc/mounts

=======================================================================

Which command is used to list all possible partition types and their respective partition id's
fdisk -l
df -h
/proc/part

fdisk -l

=======================================================================

Command used to show default routing table


Netstat -rn
Netstat –in

Netstat -rn

=======================================================================

Default shell in linux


Bash
csh

bash

=======================================================================

Which file is responsible to allow host for remote access


/etc/hosts
/etc/host
/etc/hosts.allow
/etc/hosts.deny

/etc/hosts.allow

=======================================================================

Bootloader is available in :

/boot

=======================================================================

Which is not a mode available in Linux


single
swap
rescue
multiuser

swap

=======================================================================

default configuration file for proxy server in RHEL 5


/opt/squid.conf
/etc/squid.conf
/etc/squid/squid.conf

/etc/squid/squid.conf

=======================================================================

Command to see last 5 commands run from history


last
history 5
history -5

history 5

=======================================================================

Command to modify the exsisting secondary group for existing user in Rhel 5
useradd
usermod
useradd –g
modprobe

usermod

=======================================================================

You have a user user1 and you want to add him to sysusers as a secondary group of users
usermod –G sysusers user1
usermod –g sysusers user1
usermod –G sysusers user1

usermod –G sysusers user1


=======================================================================

The file which can be used to link across filesystems


Softlink
Hardlink
FIFO
Socket

Softlink

=======================================================================

Command to display the Shell Environment variables in linux


shell
env
echo set
bash

env

=======================================================================

Which command in Linux is used to change the run level of a running service
runlevel
chkconfig
service
all of the above

chkconfig

=======================================================================
List the pending jobs of a user
at
atq
at -f

atq

=======================================================================
daemon used for ftp
ftp
vsftpd

vsftpd

=======================================================================

Which is not a unix varient


fedora
slackware
redhat

slackware

=======================================================================

NFS Works at which runlevel


0
1
2
3

=======================================================================

Which method you will use to access remote server


telnet
ssh

ssh

=======================================================================

In Rhel 6, which is system wide global profile


/etc/bash
/etc/profile
/etc/bashrc

/etc/profile

=======================================================================
If you want to forcefully umount the Filesystem directory /data of /dev/sdb1
fuser -l /data
fuser –l /data /dev/sdb1
umount –f /data
fuser –km /data
none

umount –f /data

=======================================================================

Which option is used with e2fsck utility option used to autorepair the file system without
prompting
e2fsck –p

=======================================================================

Which daemon is required for crontab


cron.d

=======================================================================

command to show current logged user with details


w
who
who am i

=======================================================================

Meaning of ? in regular expresssion


ambiguous

=======================================================================

command to logout from unix terminal


exit

=======================================================================

command to logout from FTP


bye

=======================================================================

Print first 5 line of file


head -5

=======================================================================

Show hidden file

ls -a

=======================================================================
Current directory is shown by
.
..
a

=======================================================================

What is pwd

Present Working Directory

=======================================================================

Command to identify the filesystem Type from the following


fdisk -l
df -h
df -T
df -l

df -T

=======================================================================

How to check Network Reachability to a host


ping
telnet
ssh

ping

=======================================================================

Which filesystem is supported in Linux


ufs
ufsd

ufs

=======================================================================

Which initialization script file is executed after all other init script startup

/etc/inittab
/etc/rc
/etc/rc.sysinit
/etc/rc.local

=======================================================================

Which option in passwd will lock the user account


passwd -l
passwd -U

passwd -l

=======================================================================

Which option in passwd will lock the user account


passwd -l
passwd -u

passwd -u

=======================================================================
SIGH KILL SIGNAL ----------- Iska answer kill -1 PID aayega

=======================================================================
Which option is used with e2fsck utility option used to autorepair the file syatem without
prompting
e2fsck –c
e2fsck –n
e2fsck –p ------------->>>>>>>> ANSWER
e2fsck –r

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy