Author: lc-root

chmod [Command]

Command chmod chmod – command changes the permissions of one or more files. Syntax chmod [-cfvR] permissions files Options -c displays only files with changed permissions. -f suppress
Read More

chgrp [Command]

Command chgrp chgrp – command changes the owner group of one or more files. Syntax chgrp [-cfvR] group files Options -c displays only files with modified group owner.
Read More

cd [Command]

Command cd cd – command changes the current directory. Syntax cd [directory] Description The command cd without the directory name changes the current directory to home directory of
Read More

cat [Command]

Command cat cat – Concatenate files and print on the standard output. Syntax cat [–benstuvAET] [—number] [—number-nonblank] [—squeeze-blank] [—show-nonprinting] [—show-ends] [—show-tabs] [—show-all] [—help] [—version] [file...] Options –b, —number-nonblank
Read More

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
Read More

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)
Read More

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"
Read More