user@machine:~$ speedtest-cli # Install: pip install speedtest-cli
user@machine:~$ PS1='[\u@\h \W]\$ ' # Small
user@machine:~$ PS1='[@ \W]\$ ' # Extra Small
user@machine:~$ ifconfig | grep 'HWaddr'
# Go to router icon --> Connection Information --> General
user@machine:~$ dconf reset -f /org/compiz
user@machine:~$ setsid unity # (If doesn't work: sudo apt install unity.)
user@machine:~$ unity --reset-icons
user@machine:~$ sudo chvt 7 # Try 1, 2, 3, ... 7
# or, we can use shortcut key: control + alter + F7 # Try F1, F2, F3, ... F7
user@machine:~$ sudo adduser anyName ### Add a New User
user@machine:~$ sudo usermod -aG sudo anyName ### Add the Root Privilege
user@machine:~$ sudo gpasswd -d anyName sudo ### Remove the Root Privilege
-
user@machine:~$ top # dynamic user@machine:~$ ps aux # static user@machine:~$ ps aux | grep '<PID>' # Find a particular process with details
-
user@machine:~$ kill 3288 # Kill a particular program # Example: Here, 3288 is the process identity (PID), Then the program (3288) will halt. user@machine:~$ kill -9 3288 # Kill a particular program forcefully. It is especially helpful for the GPU system. user@machine:~$ kill -9 -1 # Kill all the program
-
user@machine:~$ ls /dev/sd # Press the Tab (NOT the Enter)
No Pendrive Pendrive Exist -
user@machine:~$ sudo dd if=anyName.iso of=/dev/sdx bs=4M status=progress && sync # x = {b, c, d, ...}
nmcli radio wifi off
echo 'Wi-Fi is turned off. Internet will appear within 15 seconds if everything goes smoothly.'
sleep 10 # Pause for 10 seconds
nmcli radio wifi on
echo 'Wi-Fi will turn on after a few seconds.'
https://askubuntu.com/questions/69556/how-do-i-check-the-batterys-status-via-the-terminal