Skip to main content

Command Palette

Search for a command to run...

Day-3 Learning Linux Through McQ's

Part-3

Published
•2 min read
Day-3 Learning Linux Through McQ's
R

Packaged App Development Associate @ Accenture | Infrastructure Engineering | Exploring Cloud & Security

21. What command is used to display the current date and time in Linux?

a) time

b) date

c) clock

d) now

💡
date

22. How do you recursively copy a directory and its contents in Linux?

a) mv

b) cp

c) mkdir

d) rm

💡
cp

23. What command is used to search for a specific string within files in Linux?

a) grep

b) find

c) locate

d) search

💡
grep

24. How do you create a symbolic link in Linux?

a) symlink

b) link

c) ln

d) mklink

💡
ln

25. What command is used to display the running processes in Linux?

a) top

b) ps

c) status

d) proc

💡
ps

26. How do you archive and compress files using tar and gzip in a single command?

a) zip

b) gzip

c) tar.gz

d) tar -zcvf

💡
tar -zcvf

27. What command is used to display the network configuration in Linux?

a) ifconfig

b) netstat

c) ipconfig

d) network

💡
ifconfig

28. How do you recursively delete a directory and its contents in Linux?

a) rmdir

b) rm

c) del

d) erase

💡
rm

29. What command is used to change the permissions of a file or directory in Linux?

a) chmod

b) chown

c) chgrp

d) perm

💡
chmod

30. How do you check the system hardware information in Linux?

a) sysinfo

b) lshw

c) hardware

d) hinfo

💡
lshw

To read more such Linux MCQ Questions see next Part-4

Thanks For Reading