0% found this document useful (0 votes)
32 views

Linux L1

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Linux L1

Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Which daemon should be running, so we can use crontab

Ans: crond

2. What daemon is not required for nfs(statd, nfs, lockd, mountd)

Ans: nfs

3. how to change runlevel of particular service in linux

Ans: chkconfig

4. Which system file allows remote connection ( /etc/hosts, /etc/hosts.allow, host.allow, host.deny)

Ans hosts.allow

5. What is used to see default values in route table (netstat –in, netstat –rm, ,) Ans: rout –n or netstat
–rn

Ans: netstat –rn

6. What command is used to change shesll (shell, bash,chsh)

Ans: chsh

7. What command would display environment variable of shell(bash, shell ,echo , tenv)

Ans:, env

8. File command can be used to determine (type, content, permission)

Ans: type

9. what would give all permissions to users & group but no permissions to others:

Ans chmod 770 <filename>

10. what command is used to create logical volume snapshot (lvcreate, lvshow,lvdisplay)

Ans: lvcreate

11. what command should be used display all the mountpoints( df –h, mount –l)

Ans: /proc/mounts

12. what command is used to list all the disk partitions and their id
Ans: fdisk –l

13. how to delete dir which is having file in it:-

Ans: (rm –rf)


14. how to change runlevel ( /etc/inittab)
15. how to login server using encypted password.
Ans: ( ssh )
16. Which daemon is use for ftp service.
Ans: vsftpd
17. How to unlink the softlink.
rm linkname
unlink linkname
18. NFS share config file.
Ans: /etc/exports
19 What command is used to create logical volume snap.
Ans : Lvcreate –s (lvcreate --size 100M --snapshot --name snap /dev/vg00/lvol1)
20. Which shell you select when you create user and same time you have not provide access it on
machine. (/bin/bash, /sbin/nologin, /bin/nolog, )
Ans: /sbin/nologin
21. Fuser –km /data; umount /data ( this is answer) when you want to forcefully remove any file.
22. how to login server using encypted password.
Ans: ssh
23. File to configure DNS server IP on client system
Ans: /etc/resolv.conf
24. how to find version of linux kernel
Ans: uname –r
25. which initialization script file executes, after all other init script ( /etc/inittab, /etc/rc,
/etc/rc.sysinit, /etc/rc.local)
Ans:
26 system wide global profile file
Ans: /etc/bashrc
27. Link across the file system
Ans: soft link
28. Read only mount file system, make it writable
Ans: mount -o remount,rw '/mount`
29. New to ext4 (fsck, journaling, chattr, none)
Ans: journaling
30. Command to list users’s number of pending jobs
Ans: atq
31. Command to unlock password
Ans: passwd –u
32. Config file for squid proxy
Ans: /etc/squid/squid.conf
33. As a root you want to delete the 5 files contained in temp/directory and delete the directory. Which
cmd should you use.

1. rm /temp
2. rmdir /temp
3. del –r /temp
4. rm –r /temp

34. Which is the cmd to check network reachability to host

1. Ping
2. Telnet
3. Arp
4. Ssh

35. Which runlevel supports GUI (Xwindows)

1. 5
2. 4
3. 3
4. 1

36. Which cmd is used to modify an existing user secondary group

1. Useradd
2. Useradd –g
3. Usermod
4. Modprobe

37. How to make sysusers as secondary group for user1 users

1. Groupadd –G sysusers user1


2. Usermod –G sysusers user1
3. Usermodify –G sysusers user1
4. Groupadd –g sysusers user1

38. With which option e2fsck will check and automatically repair the filesystem without prompting

1. E2fsck –c
2. E2fsck -n
3. E2fsck -p
4. 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