If you are working on Linux and found that a disk partition is missing or not visible in your Files browser and you want to check if that exists or not.
Apply any of the following command:
lsblk -f
sudo fdisk -l
If you want to mount a partition named /dev/sda4 to a folder in somewhere like /home/userasha/backup, then first create a folder named “backup” into /home/userasha location then give following command:
sudo mount /dev/sda4 /home/userasha/backup
Command:
lsof -i
Lsof (LiSt Open Files) lists info about open files, by processes, ports currently running on the system.
netstat is not a default command but can be installed using:
sudo apt install net-tools
To List open ports:
netstat -lptu
More details:
https://www.tldp.org/LDP/nag2/x-087-2-iface.netstat.html
Use this utility to block certain IPs or posrts on the system. It comes pre-installed on most Linux OS.
Nice tutorial:
https://www.frozentux.net/iptables-tutorial/iptables-tutorial.html
Command:
iptables
Network traffic monitor. Can be used for monitoring Internet bandwidth. Not a default package but can be installed.
Command:
vnstat
command:
lsblk
#ubuntu List Block Device | List all drives without RAM disk
ref: http://manpages.ubuntu.com/manpages/cosmic/man8/lsblk.8.html
Recent Comments