Linux 100 Commands For 2-4 Years Exp - 20250220 - 213435 - 0000
Linux 100 Commands For 2-4 Years Exp - 20250220 - 213435 - 0000
LINUX TUTORIAL
100 LINUX
QUESTIONS
1
Q: What is Linux and what are its main features?
root user
/root home dir
/ root dir
8
Q: Explain the file permissions in Linux.
Linux file permissions include read (r), write (w), and execute
(x) for three categories: owner, group, and others.
9
Q: How do you change file permissions in Linux?
You can view active processes using commands like ps, top, or
htop.
12
Q: How do you kill a process in Linux?
kill PID
13
Q: What is a daemon in Linux?
The free command displays the total amount of free and used
physical RAM and swap memory in the system.
17
Q: Explain the purpose of the grep command.
grep is used to search text or searches the given file for lines
containing a match to the given strings or words.
printenv
30
Q: How do you set an environment variable in Linux?
Both are command-line tools for transferring data over the network.
wget is simpler and designed to download files, whereas curl offers more
protocols and features.
protocols including HTTP, HTTPS, FTP, FTPS, SCP, SFTP, TFTP, LDAP,
LDAPS, DICT, TELNET, FILE, IMAP, POP3, SMTP, and SMB.
34
Q: How do you check disk usage in Linux?
tail displays the last part of files. It’s commonly used to view
the end of log files.
36
Q: What is the purpose of the xargs command?
xargs is used to build and execute command lines from
standard input. It's useful for combining commands in a
pipeline.
*/15 * * * * /path/to/command
38
Q: What is a package manager in Linux?
top,
htop,
vmstat,
iostat, and sar.
51
Q: Explain the purpose of the ssh command.
Ex: nmcli
60
Q: Explain the purpose of the nslookup command.
rsync is used for fast and versatile file copying, both locally
and remotely. It's commonly used for backups and mirroring.
67
Q: What is a Linux distribution?
umask sets the default file creation permissions for new files
and directories.
86
Q: What is the purpose of the /opt directory?
Quotas are set using the quota and edquota commands, and
by modifying filesystem configuration.
91
Q: What is the purpose of the /usr directory?
Output can be redirected using the > for standard output and
2> for standard error.
97
Q: What is the purpose of the /proc directory?