Jul 31, 2024
ls-l: Long listing format (detailed info).-a: Shows hidden files.-t: Sort by modification time.-h: Human-readable file sizes.-r: Recursively list directory contents.cdcd -: Go to the previous directory.cd ..: Move up one directory level.cd ~: Go to the home directory.Tab to auto-complete directory names.pwdtouchtouch test1.txt test2.txtmkdir-p: Create parent directories as needed.-m: Set file permissions.cp-r: Recursively copy directories.-f: Force overwrite existing files.rm-r: Recursively delete directories.-f: Force deletion.rm -rf / as it can delete the entire system.mvmv oldname newname or mv file /newpath/chmodchmod u+x file (give execute permission to the user).u: Userg: Groupo: Others+: Add permission-: Remove permissionchownchown user:group filecatcat filetail-n: Number of lines to display.-f: Follow file updates in real-time.head-n: Number of lines to display.less and moreless file, more fileless is more functional.du-h: Human-readable sizes.-s: Summary of a directory.df-h: Human-readable sizes.-T: Include file system type.ifconfig and ipip addr show (preferred over ifconfig)pingping hostnamenetstat and ssnetstat -l, ss -tssh and scpssh user@host, scp file user@host:/pathpsaux: Detailed information about all processes.toptop, top -u usernamekill-9: Forcefully kill a process.kill pid, kill -9 pidjobs and bg/fgjobs, bg jobnum, fg jobnumtar-c: Create an archive.-x: Extract an archive.-f: Specify filename.-z: Compress the archive with gzip.gzip and gunzipgzip file, gunzip filefindfind /dir -name filename-size: Search by size.-mtime: Search by modification time.grepgrep pattern fileuseradd and userdel-m: Create home directory.-e: Set account expiration date.useradd username, userdel usernamegroupadd and groupdelgroupadd groupname, groupdel groupname