Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network commands #2

Open
mayurwaghmode opened this issue Jun 24, 2022 · 3 comments
Open

Network commands #2

mayurwaghmode opened this issue Jun 24, 2022 · 3 comments

Comments

@mayurwaghmode
Copy link
Owner

How to check if the port is in use in

Run any one of the following commands on Linux to see open ports:

sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN
sudo ss -tulpn | grep LISTEN
sudo lsof -i:22 ## see a specific port such as 22 ##
sudo nmap -sTU -O IP-address-Here
@mayurwaghmode
Copy link
Owner Author

To check the disk usage of directory
du dir-name -h

CPU usage

top
htop
ps aux | grep process-name

@mayurwaghmode
Copy link
Owner Author

get your kernel version or know which distribution you are using

uname -a
neofetch

@mayurwaghmode
Copy link
Owner Author

mayurwaghmode commented Jul 5, 2022

How to get your current IP address?

ifoconfig
ip addr show eth0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant