FREQUENTLY ASKED INTERVIEW QUESTIONS

Subh Prakash Singh
Invent the Future

Now type in your terminal:

find /path -type f -size +100M

After that, it will show the full list of large files (greater than 100MB).

Subh Prakash Singh
Invent the Future

su →

If you want temporary access to another account, you use the su command. For example, if you are logged in as user abha and want to switch to user prabha, type:

su prabha

sudo →

The word sudo means "superuser do". When you switch (change your role) to a superuser, you gain every right that belongs to the superuser. That means only they can run the sudo command with root. By using it, they can install or deny any Linux command. Example:

sudo apt update
Subh Prakash Singh
Invent the Future
Type free -h in the terminal, and it will show how much memory is left on your system. After typing the command, the memory is shown in two parts:

1. RAM → The system’s main memory is displayed, showing how much is available in bytes or gigabytes.

2. Swap → Temporary memory is shown, showing how much memory has been used, also in bytes or gigabytes.

Subh Prakash Singh
Invent the Future

last command

Subh Prakash Singh
Invent the Future

The difference between these three is as follows:

ps → It takes a snapshot of all running processes at that moment.

top → It shows a live, real-time view of running processes.

htop → Similar to top, but interactive and more user-friendly.