main_linux-commands-cheat-sheet (1)
main_linux-commands-cheat-sheet (1)
Hardware Information
Searching File Commands System Management and Info
Disk Usage
USB devices
dmidecode Show BIOS hardware cp [file1] [file2] Copy file1 to file2 timedatectl Manage the system clock
info scp [file.txt] [server/tmp] Create a tar file from a
file
hdparm -i /dev/[disk] cp -r [directory1] [directory2] Copy directory1 to cal Show current day and
Show disk data info rsync -a [/location]
Sync the contents of
hdparm -tT /dev/[disk] mv [filename1] [filename2] directory2 Rename afile whoami month Show the current
[/backup/] a location with the
Disk read speed
badblocks -s /dev/[disk]
backup directory
ln -s [/path/file] [link] finger [username]
Variables
Create symbolic link to user
test Unreadable file
touch [file] ulimit [flags] [limit] Show user information let "[variable]=[value]" Assign integer value to var
blocks test Create a new file
View or limit system resources export [variable] Export a Bash variable