Most used Unix/Linux Commands

In Linux, everything is considered a file, including devices and directories. The command lsof (LiSt Open Files) displays open files and the processes that are using them. In case a process holds a file open and prevents closing it, the lsof command helps identifying and killing it as needed.

1. l
...
1. w

The w command gives information about currently logged in user such as ip, login times, load average :

w
08:06:55 up 3 days,  1:30,  1 user,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    197.27.57.174    08:06    2.00...

yt-dlp is a command-line tool for downloading audio and/or video from various sites including the most known youtube. The project is a fork of youtube-dl which is no longer maintained.

1. Install

With the frequent YouTube API updates, and the yt-dlp version present in official repositories that...

In case we want to automate a task that might not work immediately but is expected to eventually succeed it can be necessary to recourse to a command in a loop. This can be done easily with while or until loops.

1. while loop

While Loop executes the command when the condition is true and keeps e...