Linux, Unix, cli, Command,

cd [Command]

Command cd cd – command changes the current directory. Syntax cd Description The command cd without the directory name changes the current directory to home directory of the user. Otherwise the cd will change …
Linux, Unix, cli, Command,

cat [Command]

Command cat cat – Concatenate files and print on the standard output. Syntax cat Options –b, —number-nonblank Number all nonblank output lines, starting with …
Get Device Information

Get Device Information

Get All Hardware Devices lspci Get Drives Info fdisk -l Get HDD Partitions Info df -h Get CPU Info cat /proc/cpuinfo Get Filesystems Info cat /proc/filesystems Configuration Info Sytem Configuration system-config-network system-config-display system-config-packages system-config-... Show …
Webmin Logo

[How To] Reset Webmin Password

Login into system as root or become superuser. su - or sudo su - Run Command RedHat distribution (i.e. Fedora, CentOS, Gentoo, etc.): /usr/libexec/webmin/ /etc/webmin admin newpassword Debian distribution (i.e. Debian, Ubunto, etc.): /usr/share/webmin/ /etc/webmin …
Files, Folders Management

Files, Folders Management

Append “Hello” to /hello.txt echo "Hello" >> /hello.txt Replace /hello.txt and put the “Hello” into the /hello.txt echo "Hello" > /hello.txt Show file info wc /root/anaconda-ks.cfg Delete file(s) rm *.txt rm lala.txt Create text file …

Get CPU Information

Get CPU Model cat "/proc/cpuinfo" | grep "model name" Get CPU Frequency cat "/proc/cpuinfo" | grep "cpu MHz" Get CPU Cache Size cat "/proc/cpuinfo" | grep "cache size"

Get RAM Information

Get RAM Information free -m free -mto | grep Mem: | awk '{ print $3 " MB" }' rusedram="$($_CMD free -mto | grep Mem: | awk '{ print $3 " MB" }')" rfreeram="$($_CMD free -mto …