0% found this document useful (0 votes)
21 views11 pages

Linux Pepar

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

Linux Pepar

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

1.

Identify the command which is used to remove files.


delete
rm
dm
erase

2.
Identify the service which is used to translate a domain name to IP
address.
NIS
DNS
SMB
NFS

3.
Which of the following command is used to add a new user to the
system?
Using Linuxconf
Using adduser
Using useradd
All of the above

4.
Total primary partitions that can exist on one drive is_____________
1
2
16
4

5.
Identify the command which is used to create Linux File systems.
fsck
mkfs
fdisk
mount

6.
What is the core of the Linux operating system?
Terminal
Kernel
Command
Terminal

7.
In which of the following directory does the configuration files are
present?
/bin/
/root/
/etc/
/dev/

8.
Identify the OS which is not based on Linux.
Ubuntu
BSD
CentOS
Red Hat

9.
Where is the user data stored?
/etc/passwd
/root/password
/etc/password
/root/passwd

10.
Identify the latest file system type of Linux
Ext4
ext2
ext
mimix

11 Which command is used to display the operating system name?


wc
uname1
countw
cat /etc/os-realese

12.
Which command is used to create a file
touch
pg
lp
print

13.
Which option of ls command used to view file
cat
-i
-o
-a

14.
Using which of the following command can view all of files?
ls -h
ls -a
ll
ls –k

15.
Which of the following sign is used to represent the user OS
[grandmother] directory?
/
.
~
..

16.
Which of the following is used to represent the root[mother] directory?
~
$
#
/

17.
The Apache2 configuration file is?
/etc/httpd/config.ini
/etc/apache2/site-avalible
/etc/httpd/conf/httpd.conf
/etc/srm.conf
18.
Which of the following command is used to see the custom added in the
samba server?
testparm
rpcinfo
infserv
NFSinfo

19.
Which of the following command is used to change the working
directory?
changed
chdr
dr
cd

20.
Which of the following commands is used to create files?
cat
lyrix
vi
ed

21

The httpd configuration file is?

/etc/httpd/config.ini
/etc/apache2/site-avalible
/etc/httpd/conf.d/httpd.conf
/etc/srm.conf

22 How to create the directory

Mkdir

Vim

Touch

Vi
23 How to edit file

Vim

Mkdir

Ls

Ll

24 What is the apache2 installation command?

Apt install apache2

Yum install httpd

Yum install samba

Apt install samba

25 What is the samba installation command?

apt install samba samba-client

apt install apache2

apt install nfs

yum install httpd

26 How to move to user

Su username

Su su username

Mkdir username

Vim username

27 Where is the SSH file location


/etc/ssh

/etc/sshd

/var/ssh

/mnt/sshd

28 What is the lv create command


Vgcreate

Pvcreate

Lvcreate

Fdick

29 How to move to root

Sudo –i

Sudo

Su

Exit

30 How to add group

Addgroup

Groupadd

Useradd

Usermod

31 How to change ownership of file with permission

Chown and ch

Chown and chmod

Usermod and chown

None of above

32 what is Linux default permission directory

777

755

775

600

33 What is command for user add to group


Usermod –aG

Usermod

Useradd

Userdel

34 What will do TOP command

Monitoring

Creating

View

None of above

35 What software we can use file transfer local to remote

winSCP

putty

puttygen

None of above

36 Example for ssh client

Putty

Puttygen

Winscp

Filefilla

37 What is the copy command?

Cp

Mv

Ls

Lsof

38 what is the used to display details about block devices


Lsblk
Cp
Mv
Mkdir

39 How to update root password

Passwd root
Password root
Vim root
Cat root

40 What is the service restart command

Service restart SERVICE_NAME

Service SERVICE_NAME restart

Service service restart


systemctl reload SERVICE_NAME

41 How to move file to another location

Cp

Cat

Mv

Vi

42 What is default apache location

/var/www

/var/www/html

/var/web

/home/web
43 Where we can edit samba configuration file

Vim /etc/samba/smb.conf

vi /etc/samba/

vi /etc/smb/smb.conf

None of above

44 What id the Ansible host location

vim /etc/ansible/hosts

vim /etc/

vim /var/www/html/index.html

None of above

45 What commands are using for find file?

Find and locate

Find and api

Locate and vim

Mkdir and vim

46 What is the Ubuntu firewall command?

Ufw

Ucw

Api

call

47 How to install package for cenos/redhat

Yum install

Apt install

Suse install

None of them

48 What id the correct one in permission

R=4 w=1 x=0


R=4 w=2 x=1

R=2 w=4 x=1

R=1 w=2 x=1

49 rwxr-xr-x correct answer is

777

775

755

700

50 How to create a web directory in /var location

Mkdir /var/web

Cd /var and mkdir web

1 and 2 both right

1 and 2 both wrong

You might also like