Here are all of the quick commands I have to use on almost every Linux build.
uname
will return Linux
uname -r
Will return the version you are running
uname -m
Will return the kernel release
uname -a
Returns all the info it can give you about the kernel
cat /etc/os-release
All of the above commands will give you kernel and release information. They are pretty handy when you’re working with some weird distros.
df -h
Will return your disk usage and status
ifconfig
Will return what your current network settings look like. Get the name of your interface (most of the time either eth0 or eth1 etc…) and use the following command.
eth1 192.168.1.250 netmask 255.255.255.0
If your interface is called eht1, this command will change the IP address to 192.168.1.250 and assign the proper netmask. This can help you to quickly set a static IP on a device.
Recent Activity