Sei sulla pagina 1di 12

Information technology is widely used in

In a company there are 3 groups i.e Finance, HR and Marketing. Each groups havin
g 3 members. There is a file named as file1.txt. The permission set for the abov
e file is rwx-rw----x. Now the question is only the members of Hr and Marketing
group can view and edit the file. But the file is not accessible to the members
of Finance Group. Can anyone tell me what would be the exact command for linux.r
oot@localhost#
---------------------------------------------------------------------------------------------what is the roles and responsibilities in linux system admin having 2yrs exp..?
---------------------------------------------------------------------------------------------In Linux how you set time a limit on quota?
---------------------------------------------------------------------------------------------How did you do the Health check in Linux?
Top :
Top Command can provide the top processes, CPU Load, Memory
Utilization, Swap Utilization, Running/Zombie Process,
Uptime, etc..
iostat:
This command will provide the information about the disk
utilization, Read/Write rate, etc..
[root@fgrestore-100343-cr312561-app001 ~]# iostat
Linux 2.6.32-358.23.2.el6.x86_64 (fgrestore-100343-cr312561-app001)
15
_x86_64_
(2 CPU)
avg-cpu: %user
11.61

%nice %system %iowait %steal


0.00
3.61 12.72
0.00

Device:
sda

tps
3.43

Blk_read/s
81.99

Blk_wrtn/s
27.25

08/10/20

%idle
72.06
Blk_read
69701072

Blk_wrtn
23168588

[root@fgrestore-100343-cr312561-app001 ~]#
vmstat:
vmstat command provides the swap memory utilization report.
[root@fgrestore-100343-cr312561-app001 ~]# vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu----r b swpd free buff cache si so
bi
bo in cs us sy id wa st
1 1
0 260272 7588 4544680
0
0
21
7
6
4 12 4 72 13
0

sar (System Activity Reporter):


sar tool can provide the report about CPU Load, iowait and
other useful info at specified intervals.
dmesg:
dmesg command displays all the server errors including
Hardware, booting, network errors
This command will retrieve the information from log files
which located in /var/log
Other Useful commands to collect some info about the
server :
runlevel

To Know the Current Run Level

netstat

To see the Network sessions

netstat

rn

who / finger
ps ef
files

To View the gateways configured


To View the Users logged in detail

To view all the running process and its related

sestatus

To check SELINUX status

service iptables status


ifconfig a
configured

To check firewall status

To View the Network cards and IP Address

---------------------------------------------------------------------------------------------How to add Crete a new ftp user? or How to add a exiting user into FTP ?
---------------------------------------------------------------------------------------------How to activate / deploy licence in RHEL 6 and what will happen if you don't act
ivate / deploy licence in RHEL 6 ?
---------------------------------------------------------------------------------------------When u comment the ctrl+alt+del trap in the /etc/inittab save the file. Tell the
command to save the changes without rebooting the machine?
init q
---------------------------------------------------------------------------------------------How we can set the password length in linux?
[root@fgrestore-100343-cr312561-app001 ~]# cat /etc/login.defs|grep -i PASS_MIN_
LEN
#
PASS_MIN_LEN
Minimum acceptable password length.
PASS_MIN_LEN
5
[root@fgrestore-100343-cr312561-app001 ~]#

---------------------------------------------------------------------------------------------In /boot/grub/grub.conf file there is a line kernel /vmlinuz-version ro root=/de


v/sda2, What is the meaning of "/" before vmlinuz? Pls explain?
what is first RHEL 5.x version support ext4 filesystem?
---------------------------------------------------------------------------------------------what is the last file executed during the boot process?
/sbin/mingetty tty1
---------------------------------------------------------------------------------------------What is the difference between kill and kill -9 commands?
kill command uses signal SIGTERM to kill processes by default it is kill -15
kill -9 uses the sinal SIGKILL to kill a processes (i.e force termination of pro
cesses )
---------------------------------------------------------------------------------------------I have my default runlevel is init5 now i have configured to init 3,now i wanna
run my system in init3 process without reboot the system .How will you do for th
is scenario?
#vim /etc/inittab
id:5:initdefault
you can replace 5 to 3 and save file
after that without reboot the system go to runlevel 3, use
following command
telinit 3
or
init 3
---------------------------------------------------------------------------------------------I have a user name in /etc/vsftpd/user_list which is for blocking the ftp user.
Now i blocked the user as well ,but without removing username in user_list i wan
na access the users home directory and his own directory .How will you access th
e data ????
span-systems 3
3536
what is lilo?How it is useful in linux?
3
4886

hcl [also asked @ softec]

i am prepairing for 2+ yrs exp in oracle/unix production support, which topics s


hould i cover in unix/linux and sql plz help 1
18582 [Send This Quest
ion to Your Friend]
What is the command to change from /etc/passwd file to /etc/shadow file? 4
5787

What is the command to find the hardware configuration in Linux? 1

4115

How to root mirror in Linux? How to replace mirrored hdd in case of failure?
siemens 1
3390
What is the command to check wwn # in linux?

siemens 4

how can i give acl permission in numerical mode on linux


4492

7309

how to restart apache server with out shatdown?


8
6344
What is chainloading? 4

hcl 4
ibm [also asked @ eer]

3862

How to hide the partition in GRUB booting? (This technique is required when you
have more that one Windows system on different partitions of the same disk, let
us say the first and second partitions of the first hard drive, to boot from the
first partition you must hide the second one) 2
3117
[Send This Quest
ion to Your Friend]
How to shuffle the GRUB booting from one Disk to other? 1
What is the Difference between 'su' and 'su-' ?
explain about vnc 4

2385

fujitsu 3

5544

2438

what is the booting process of linux systen and explain it,is the first process
comes under the installation process. mind-tree [also asked @ csc csc ea-elec
tronic-arts vsworx vsworx]
3
7194
Linux system monitoring Tools? hcl [also asked @ ibm ibm]
6
8676
what is work of dns

hcl 3

3677

difference between patches and packages? and how to upgrade patches


also asked @ hp hp ]
2
4495

yahoo [

what command would you use to find the hostname of the server if yo ony have the
ip address? 10
4761
What are the files to be used in the network installation of linux os? 4
4224
Explain about kernel file in linux? 7

4103

What is the command to see the installed rpm's in the linux system. 4

4499

What is the command to see all the processes are working in the last 30 days? 9
5906
How can we see the default gateway ip ini linux. 6
what is ldd?
6613

4298

ibm [also asked @ magnum tcs tcs tech-mahindra]

in redhat Linux wat is the command to check at ahich date and time file was crea
ted? 16
8659
what is the command to uninstall processes in linux?
cl aegon ugam-solutions]
17
11391

ibm [also asked @ hcl h

what is the command for finding the higest memory occupied file in linux?
ibm 9
9873
what are the linux boot files? wipro [also asked @ css css ]

13034

difference between nfs soft and hard mouniting points? oracle 5


7884
Q. If we transfer 100 files by ftp to remote server, how to know the files are s
uccessfully transfer or some file are not transferred ?
ibm [also asked
@ imb]
6
6662
I know ssh, telnet, dns,apache all are worked on TCP/UDP but i want to know any
one service which are working on UDP only?
wipro 9
6068
[Send Th
is Question to Your Friend]
I want to built a fire wall using iptables. My condition is " inbound to 192.168
.0.2 with a port of 80 from 172.168.0.1 should accept" netenrich 6
5292
[Send This Question to Your Friend]
I want to see how many interfaces(ethernet cards) are working using single comma
nd? 8 3898
What is the status code 403,404 represented in apache server? 2

3284

How to monitor ports in a linux machine, with single command? 7

5302

Difference between swap partition and swap file?


t iiht tata tata ]
4
9662

wipro [also asked @ iih

In my linux machine, i lost /etc/passwd file and /etc/shadow file, then how can
i recover it? google 5
9150
I want to kill zombie process, but with using kill 9 i cannot kill that process?
can u tell other commands?
cts 2
5030
[Send This Question to Y
our Friend]
How can I know my linux os is 32 bit or 64 bit? and How can i know my CPU is 32
bit or 64 bit in linux machine environment.? 7
5868
[Send This Quest
ion to Your Friend]
My linux machine is crashed due to root file system, I need not to bother about
the root file system, but i need to take care of /etc, /usr, like that.,, can i
recover these file systems? 2 2332
I lost a root password and i need to give it, I treid to change it through singl
e usermode even though i am not get a password, then what is the other procedure
to give a root password? 8
2844
A file which is not deleted by normal user and also root (using rm), for that ty
pe of file how we delete it?
cts 5
4008
[Send This Question to Y
our Friend]
what r the different command to check ram,process and hdd of linux machine 4
3617
if i have one folder say aaa and that folder having 100 files from that 50 files
there aaa word is written how to find in which aaa is writen and without openin
g that file
6
2558
if i run ls command it will show me the junk output what is problem and how to r
esolve it
bpo 2
3377

what is snmp and for what purpose we are using in linux 4


what is linux utilities and editor
4
2970

3381

oracle [also asked @ wipro wipro]

Hi All of Unix/Linux professional Q.Why soft link file not open by cat command.
Ihave make following symbolic link but when i open with #cat linkfilename it doe
s not oped please see the following code and try to answer. # ln -s file1 ~/mydi
r/filea [root@dhcppc0 ~]# cd mydir [root@dhcppc0 mydir]# ls -l total 4 lrwxrwxrw
x 1 root root 5 2010-04-04 09:04 filea -> file1 [root@dhcppc0 mydir]# cat filea
cat: filea: No such file or directory 2
2005
WHAT IS THE MEANING IF AIX

ibm 5

3247

1). What are the situation in process is duplicate is linux box.? 2) Give me 5 s
ituation to kill a process?
perot-systems 1
2142
[Send This Quest
ion to Your Friend]
Why ls -F dev/log file output indicate as = sign at end of the file name?
ibm [also asked @ hcl hcl ]
5
4792
how to call recursive grep function? 2
what is nis server? 4

3696

6719

How to reset root password via command Redhat 5.2 13

9108

how to see the system configuration in your linux system? 7

6501

what is difference between $@ and $* in UNIX Shell script


15689

google 3

What can you type at a command line to determine which shell you are using?
tech-mahindra 6
5079
What are two subtle differences in using the more and the pg commands? airtel
2
2989
When you issue the command ls -l, what signifies the first character of the resu
lting display file? 701 What command can you use to determine the purpose of any
command?
What is Write Command? 3

3231

How can I only see the first 14 lines of a file? 5

3845

How can I only see the last 5 lines of a file? reliance 10

3700

What command you use for cpio to create a backup called backup.cpio of all the u
sers home dirs? 2
2507
What is the command to list ALL (hidden also) files of current directory & it s su
bdirectories? 6
3432
To move /home/ben/memos dir in /home/bob/memos, what is the result by mv /home/b
en/memos /home/bob 4
2089
our wish to print the file vacations with 60 lines to a page. Which command will

accomplish this? 2

1464

Which two commands can you use to delete directories? 2

2996

What command you execute to display the last five commands you have entered? 4
4303
What command can you use to review boot messages?

tcs 3

2923

Compare between SYS V launched processes and Xinetd processes in Linux. 1


2399
Explain Backup Managment commands in Linux. 5
what are the init levels in Linux? 3

2617

who invented unix?

3184

wipro 3

3266

Write a cron entry for the following scenario:- At 10:30 AM for every Sunday of
every 1st month of a quarter.
1. Why "d" is postfix in almost every service name of Linux like httpd, dhcpd? 2
. how to restrict su & ssh services for some users? 3. how can we configure a de
fault gateway for 10 n/w cards in a server? 6 3191
How to block the message in wall command some students are send messages to all
in the lab. please help me 5
7356
[Send This Question to Your Friend]
i dont know root password then this situation can we change or break root passwo
rd to ant process 5
2721
what is the difference between RHEL4 & RHEL5?

tcs 3

6211

what is the command to make a process to run in the foreground from background?
5
3321
how to give a normal user reboot and shutdown permission? Plz also mention the s
tep. 4
5937
what is the difference between service and process?

ibm 7

how to view crond status? If it's show service is not found.


7192
what is the command to view gateway? 5

20016
tech-mahindra 6

3334

my clients are getting services from servers but how to know which client is usi
ng which service. is there any files to keep information about these? clients us
ed ftp, nis, samba, apache, squid, nfs and mail services how to know how many us
ers got service from server side with date,time and client system ip ? wipro 3
4097
[Send This Question to Your Friend]
i am working in one company and i attend intervew they asked why do u want to ch
age company pls give me inteligent answar 3
2608
[Send This Question to Y
our Friend]
how many hard disks can i able to connect to desktop pc and server (IDE & SATA)
pls send this ans to my mail : ping2pavan@gmail.com 1 2130
[Send This Quest
ion to Your Friend]

How to FTP user access other directory except his own home directory ? ibm 2
4152
what are the Linux-based security tools? 4

3011

what are the basic elements of firewall?


cmc [also asked @ athena-securi
ty-solutions]
2
4063
what is a command to display top 10 users who are using Huge Space?
tns [al
so asked @ ibm ibm ]
3
5981
What is the command to remove Lvm ,Pv and vg
tech-mahindra ]
12
8825

tns [also asked @ tech-mahindra

can some one tell me the steps(with commands) to create LVM in RHEL 5???? 5
4648
In which File is Static IP address given so that it becomes Permanent ?
dcm [also asked @ wipro wipro]
10
5404
To Check Which Service is Running at Present in System what is the Command?
dcm 9
4648
what is emacs editor and feature........??????????????????????????? 1

1609

You have a computer with 80 GB hard disk and Ubuntu 8.04 is installed on entire
hard disk. Now you have to create a seprate partition for Windows OS and Install
Win Xp as Dual boot. write down the steps involed along with the commands.
indian-navy [also asked @ bhel bhel tata-steel-limited]
8
5832
[Send This Question to Your Friend]
which command is used to see all the system configuration? like hardware, HDD, m
emory etc.
eclinicalworks [also asked @ ads ads njn]
13
16100
[Send This Question to Your Friend]
What are the basic commands in LINUX? 6

7766

please advice me what i have to prepare for NIC Exam(22-feb- 09). send me the qu
estion pattern for the 2 hrs exam. please sent it to manivannan_it15@yahoo.co.in
google [also asked @ pge]
0
818
what are the features of Linux? 2
What is an inode?

4049

prodex-technologies 3

4658

can anyone proide me reading material on svit00ef27@yahoo.com please thanx in ad


vance 1
842
how to create SAMBA server in fedora 9 linux ? wipro 6

7176

when i create SAMBA server it is ok but while i try for access from windows pc h
e ask me only first time smb password then i close samba login next time he can`
t ask for passwd why.? wipro 4
3687
I have Laptop. I want to assign DHCP ip address, but in my Laptop having Wireles
s and with wire NIC cards, it is possible to assign reserve ip address for both
NIC card, but same host name? aol 4
4308
Write a command to find all of the files which have been accessed within the las
t 30 days.
mphasis [also asked @ tcs tcs]
8
8681
[Send Th
is Question to Your Friend]

How to schedule cron backup to run on 4th saturday of month??


6577
how to see unallocated hard disk space on linux

hcl 9

hcl 12

32173

hi friends how to reinstall the grub.conf file. once i delete the grub file in p
erminatle ofter how to get back that file. plz send me ans. regards. madhu.m 5
6064
find out what file systems supported by kernel? 4
how to add linux user to group? 18

4491

6770

how do u extract files from iso cd images in linux?

wipro 5

4676

how do u find remote machine operating system and version?


14248

wipro 10

how do you port scaning with netcat command?

3450

wipro 1

how do find all failed login attempts via ssh? tcl 8

11954

How do display error messages instantly when command fails?


3400

satyam 2

How do find hard disk revolutions speed?


6460
when zombie process fully cleared?

hp [also asked @ acl]


hp 4

5306

how do you configure linux system as a router? hp 5


How do you read ext2/3 file system in windows? hp 8
Which priority has the process?how do u view?

yahoo 3

5912
4308

Any one example of uninteruptable sleeping process?

6296
satyam 2

2893

how many limitations of under directories in ext2/3 linux file system? logica-c
mg 1 3833
what is a superblock ? 1

3767

what is the command to check network interfaces in our system? how to set etho t
o 10 full duplex speed? 1
3843
[Send This Question to Your Friend]
what is the UID and GID of root user? Can a normal user can change the ownership
of a file? what is the command to change ownership of a file? ipsoft [also as
ked @ hcl hcl ]
9
26729
what is soft mount and hard mount? i have to make permanent nfs mount permanent
what shall i do?
ibm 4
12836
what is major and minor?

ibm 2

3491

what is the command to make a process to run in the background from foreground?
patni 5
4360
1.what is Kernel parameters? 2.how many cpu have use in your machine?
3
7599

consim

1.I want to change runlevel but the Users shall not be disturbed?how? 2.Disk hav
e 5gb disk utilization even though files unable to create, why? 3.what are the i
nternal and external command in linux? 4.sar command o/p? 5.how list the open fi
les? 6.what is kernel compiling? 7.How do u See complete configuration in ur sys
tem? 8.how will u make a daily updates with cron daily? 9.which port is associat
ed with ttys0? 10.specific some problems linux admin(if u are linux admin)faced
and how did u overcome it?
ibm [also asked @ tcs tcs]
10
6063
how to run the boot loader in the linux....... 5
what is user mode & kernel mode? 7

4400

23618

what is the diff b/w ext2 and ext3?


what is initrd image?

oracle [also asked @ ibm ibm ]

what is jumbi process? oracle 6

10522

7381

My machine is running half duplex mode how to change half duplex to full duplex?
oracle 4
5578
some one is asking my machine is slow what is your steps?
ked @ talent]
5
5195
what is mean by system calls

infotech 4

What is trusted/untrusted operating system? 8

oracle [also as

9578
6535

Working in Linux/Unix platform, if any command dose not work, say # ls reports a
s command not found. what to do? 5
6438
[Send This Question to Your Frie
nd]
why do u want to join this company
infosys infosys wipro wipro wipro]

united-healthcare [also asked @ hcl hcl


6
15404

Hi guys, I am working in MNC from 1 and half year as Software Engg but not in pr
ogramming, its in Information Security. Now I am doing RHEL 5(Red Hat certificat
ion) to move into Linux Admin. Can anyone please give me the future scope of thi
s field and please send me the interview questions or links to get the idea. Tha
nks, Sushant. 1
3910
in unix how to change old name to new name

google 7

11627

what is the standard output in a file as well as disply it on the terminal optio
ns like A)pr B) tail C) tee D)nl
google [also asked @ thermotech-enginee
rs]
3
3838
what is command like " #(cd unixos; pwd) " tell me OUTPUT
4273

google 10

in unix how to change old name to new name

3511

google 7

what is "ls* " is run options are 1) x 2).x 3) hidden 4) no disply tell exact an
swer. google 6
4507
tell me command for" to create more than one name to a file".
6077
how to create a new file command
google 17
15306
what is command for "calj2007" google 2

3742

google 3

how is "to run even after user logs out"


what is QUOTA-V

google 4

google 2

4312

google 4

3479

5478

what is the command To print script arguments

how is the possible the "last 10 files present in the current directory and stor
es them in the file list".
google 9
5054
[Send This Question to Y
our Friend]
script is like x=10; y=20; [$x-ne$y]; echo $ please give me output.
[also asked @ amdoc ]
2
3216
what is Bourne shell.
1
3184

google

google [also asked @ hcl hcl infosys infosys infosys]

How will retrieves incoming mails from different web sites


@ hcl hcl ]
2
3332
Diff b/w C-shell and Born-shell

hp 2

hp [also asked

4908

ls -l ls -t ls -r ls -a ls -ltr ls -u grep error file.txt grep -v error file.txt


perl prg.pl | ./file.txt tee chmod +x chmod -x chmod =x ps bg date +%y%m%d ?
hp 0 1038
What would you do when all the processess hangs and there is no other option in
unix? hp 3 4475
Did you ever write any inerface files / profile file to support unix environment
setup ?
hp 1 1175
How will you execute a java program inside a kornshell script? hp 1

3011

How would you find whether a remote server is up or not?


How do you find out the server processes running?
hp 4

6265

hp 8
4840

How do you rate yourself in unix(if 0 is novice and 10 is sys admin)?


2274
Did you work with linux? What flavors and versions?

hp 5

hp 2

3758

have you ever got warning message from unix admin that file system running out o
f space or not enough disk space?what will u do?
hp 5 4132
[Send Th
is Question to Your Friend]
How will retrieves incoming mails from different web sites
@ wipro wipro] 4
3205

hp [also asked

Please send Security on linux related questions and answers.


800

linux 0

Set the Display automatically for the current new user ? 3

5605

Display the Disk Usage of file sizes under each directory in currentDirectory ?
8
6514
What does the following command line produce? Explain each aspect of this line.
$ (date ; ps -ef | awk {print $1}' | sort | uniq | wc -l ) >> Activity.log
cisco 4
5010

What is the most graceful way to get to run level single user mode?
6558
difference between Tcp and udp 5

cisco 8

9367

How can you find configuration on linux? 5

9341

What does the top command display?


10
12792

yahoo [also asked @ inautix inautix ]

How you will uncompress the file?

linux 7

What u know abt tar Command?


locuz 5
List all the files beginning with A 10

7212
5202
5151

When is it better to use the more command rather than cat command? 3

4271

in LINUX,What are two subtle differences in using the more and the pg commands?
2
3813
Send me some of the commands being used in linux
ddys reddy-labs]
5
5483

ibm [also asked @ dr-re

http://www.allinterview.com/interview-questions/223-14/linux-commands.html

Potrebbero piacerti anche