Open the terminal and run the following command: df
Unmount the USB drives before formatting. To do so, run this command:
sudo umount /dev/sdb1

First, update the packages index and install the dependencies necessary to add a new HTTPS repository:
sudo apt update
sudo apt install apt-transport-https ca-certificates wget
Import the repository’s GPG key:
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
To create a new group named mygroup you would run:
groupadd mygroup
If the group with the same name already exist, the system will print an error message like the following:
groupadd: group 'mygroup' already exists
To suppress the error message if the group exist and to make the command exit successfully, use the -f (--force) option:
The git commit --amend command allows you to change the most recent commit message.
To change the message of the most recent commit that has not been pushed to the remote repository, commit it again using the --amend flag.
git commit --amend -m "New commit message."
pidof is a command-line utility that allows you to find the process ID of a running program.
Let’s say the Chrome browser has become unresponsive, and you need to kill the Chrome processes. First, find the PIDs, with pidof:
pidof chrome

sudo kill -9 8846 8580 8534 8516 8510 8500 8470 8178 8098 8085 8048 8015 7999 7972 7531 7453 4442 4420 4390 4371 4352 4334 4322 4288 4281 4256 4244 4232 4207 4192 4182 4163 4162 4160 4145 4131 4096 4080 4065 4040 3987 3718 2768 2736 2631 2618 2589 2566 2541 2448 2311 2308 2214 2210 2209 2193
When working on a Linux machine, sometimes you might need to find out what processes are currently running. The Pstree is a convenient way to displays a hierarchical tree structure of all running processes:
pstree

pstree ubuntu