[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-571395-105":3,"detail-sidebar-cat-1-en-105":81,"doc-detail-571395-en":127},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","linux-commands-cheatsheet-quick-reference-for-essential-linux-commands","Linux Commands Cheatsheet - Quick reference for essential Linux commands","","Linux Commands Cheatsheet offers a fast, structured quick reference for essential Linux commands across multiple practical areas. It organizes core tasks such as file listing and navigation, creating and deleting files, copying, moving and linking, viewing and searching text, and retrieving file and command details. It also covers permissions and user management, process monitoring and control, disk and filesystem checks, networking and SSH workflows, archive handling, text processing tools, pipes and redirection, system information, and timing or scheduling commands.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/template/","Template",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/template/presentations/","Presentations",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/template/linux-commands-cheatsheet-quick-reference-for-essential-linux-commands/571395/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/linux-commands-cheatsheet-quick-reference-for-essential-linux-commands/571395.png","ImageObject",442,249,{"name":42,"@type":43},"Oliver","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-10-21","2026-10-13",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",7,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What topics are covered in the Linux commands cheatsheet?","Question",{"text":63,"@type":64},"It covers file listing and navigation, creating and deleting, copying/moving/linking, viewing and searching, file information, permissions, user info and management, processes, disk usage, networking, SSH, archives, text processing, pipes/redirection, and system info.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Which commands are provided for listing directories and file details?",{"text":68,"@type":64},"The sheet includes ls, with options such as -la for detailed listing, -lh for human-readable sizes, and -R for recursive listing.",{"name":70,"@type":61,"acceptedAnswer":71},"How does the cheatsheet help with finding patterns inside files?",{"text":72,"@type":64},"It provides grep usage, including recursive search (-r), case-insensitive matching (-i), line numbers (-n), and inverted matching (-v).","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},571395,1792241946,{"code":4,"msg":82,"data":83},"success",[84,88,93,98,103,108,113,118,123],{"id":85,"doc_module":22,"doc_module_name":25,"category_name":29,"show_sort_weight":86,"slug":87},11,90,"presentations",{"id":89,"doc_module":22,"doc_module_name":25,"category_name":90,"show_sort_weight":91,"slug":92},12,"Resumes",80,"resumes",{"id":94,"doc_module":22,"doc_module_name":25,"category_name":95,"show_sort_weight":96,"slug":97},14,"Invoices",70,"invoices",{"id":99,"doc_module":22,"doc_module_name":25,"category_name":100,"show_sort_weight":101,"slug":102},15,"Posters",60,"posters",{"id":104,"doc_module":22,"doc_module_name":25,"category_name":105,"show_sort_weight":106,"slug":107},16,"Social Media",50,"social-media",{"id":109,"doc_module":22,"doc_module_name":25,"category_name":110,"show_sort_weight":111,"slug":112},17,"Forms",40,"forms",{"id":114,"doc_module":22,"doc_module_name":25,"category_name":115,"show_sort_weight":116,"slug":117},18,"Letters",30,"letters",{"id":119,"doc_module":22,"doc_module_name":25,"category_name":120,"show_sort_weight":121,"slug":122},21,"Paper Templates",5,"papers-templates",{"id":124,"doc_module":22,"doc_module_name":25,"category_name":125,"show_sort_weight":4,"slug":126},158,"General","general-158",{"code":4,"msg":82,"data":128},{"doc_id":79,"user_id":129,"nickname":42,"user_avatar":130,"doc_module":22,"category_id":85,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":131,"file_id":132,"file_url":133,"file_type":134,"file_size":135,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":136,"language":137,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":138,"faqs":139,"seo_title":140,"seo_description":12,"update_tm":141,"read_time":30},8796095461610,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","HOME / CHEATSHEETS / LINUX COMMANDS CHEATSHEET  \nLinux Commands Cheatsheet  \nBy Dejan Panovski • Updated on Jan 12, 2026 •  \nQuick reference for essential Linux commands  \nA comprehensive quick reference guide covering the most commonly used Linux commands. From file management and text processing to networking and system administration, this cheatsheet helps you find the right command fast. Click on any command to read the full tutorial.  \nFile Listing  \n| View directory contents and file details. |  |  |\n| --- | --- | --- |\n| ls |  | List directory contents |\n| ls | -la | List all with details |\n| ls | -lh | Human readable sizes |\n| ls | -R | List recursively |\n\n\n| Navigation\u003Cbr>Move between directories in the filesystem.\u003Cbr>cd Change directory |\n| --- |\n| cd . . Go up one level |\n| cd ~ Goto home |\n| cd- Go to previous dir |\n| pwd Print working directory |\n| pushd/popd Directory stack |\n\n\n| Create & Delete\u003Cbr>Create and remove files and directories.\u003Cbr>mkdir Create directory |\n| --- |\n| mkdir-p a/b/c Create nested dirs |\n| touch Create empty file |\n| rm Remove file |\n| rm-rf dir Remove dir recursively |\n| rmdir dir Remove empty dir |\n\n\n| Copy & Move\u003Cbr>Copy, move, and link files.\u003Cbr>cp Copy file |\n| --- |\n| cp-r src dest Copy directory |\n| mv Move or rename |\n| ln-s Create symlink |\n\n\n| File Viewing\u003Cbr>Display and browse file contents.\u003Cbr>cat Display contents |\n| --- |\n| less View with pagination |\n| head First N lines |\n| tail Last N lines |\n| tail -f file Follow changes |\n\n\n| File Search\u003Cbr>Find files by name, type, or date.\u003Cbr>find Find files by criteria |\n| --- |\n| find . -name \" * .txt \" Find by name |\n| find . -type d Find directories |\n| locate Quick search (db) |\n\n\n| Text Search\u003Cbr>Search for patterns inside files.\u003Cbr>grep Search in file |\n| --- |\n| grep-r \"text \" dir Search recursively |\n| grep-i \"text \" Case insensitive |\n| grep-n \"text \" Show line numbers |\n| grep-v \"text \" Invert match |\n\n\n| File Info\u003Cbr>Get information about files and commands.\u003Cbr>file Determine file type |\n| --- |\n| stat Display file status |\n| type Show command type |\n| which Locate a command |\n| whereis Locate binary/source |\n| basename Strip directory path |\n\n\n| Permissions\u003Cbr>Manage file permissions and ownership.\u003Cbr>chmod Change permissions |\n| --- |\n| chmod 755 file Set rwxr-xr-x |\n| chmod +x file Add execute |\n| chown Change owner |\n| chgrp Change group |\n| chattr Change attributes |\n| umask Set default perms |\n\n\n| User Info\u003Cbr>Display information about users.\u003Cbr>whoami Current username |\n| --- |\n| id User ID and groups |\n| who Logged in users |\n| w Who + what they do |\n| last Login history |\n\n\n| User Management\u003Cbr>Create, modify, and delete users.\u003Cbr>useradd Create user |\n| --- |\n| userdel Delete user |\n| passwd user Change password |\n| usermod Modify user |\n| su Switch user |\n| sudo Run as root |\n\n\n|  Group Management |  | |\n| --- | --- | --- |\n| Create\u003Cbr>groupadd | and delete user groups. | Create group |\n| groupdel |  | Delete group |\n\n\n| Process Viewing\u003Cbr>Monitor running processes.\u003Cbr>ps List processes |\n| --- |\n| ps aux All processes |\n| top Interactive viewer |\n| htop Better viewer |\n| pgrep Find by name |\n| pidof Find PID by name |\n| pstree Process tree |\n\n\n| Process Control\u003Cbr>Terminate and manage processes.\u003Cbr>kill Terminate process |\n| --- |\n| kill -9 PID Force kill |\n| pkill Kill by name |\n| killall name Kill all by name |\n| timeout Run with time limit |\n\n\n| Background Jobs\u003Cbr>Run and manage background processes.\u003Cbr>cmd & Run in background |\n| --- |\n| bg Background current |\n| fg Foreground current |\n| jobs List jobs |\n| nohup Immune to hangups |\n| at Schedule command |\n\n\n| Disk Usage\u003Cbr>Check disk space and filesystem health.\u003Cbr>df Disk space |  |\n| --- | --- |\n| du Directory size |  |\n| du-h--max-depth= 1 Subdir sizes |  |\n| [free](/post/free-comma, “[http](http)”, “networking\"nd\u003Cbr>in-linux/) | Memory usage |\n| fdisk Partition table |  |\n| fsck Check filesystem |  |\n\n\n| Network\u003Cbr>Configure and test network connections.","cbCailZSCnkG9C9y","https://ap.wps.com/l/cbCailZSCnkG9C9y","pdf",247674,9,"English","# File Listing\n# Navigation\n# Create & Delete\n# Copy & Move\n# File Viewing\n# File Search\n# Text Search\n# File Info\n# Permissions\n# User Info\n# User Management","[{\"question\":\"What topics are covered in the Linux commands cheatsheet?\",\"answer\":\"It covers file listing and navigation, creating and deleting, copying/moving/linking, viewing and searching, file information, permissions, user info and management, processes, disk usage, networking, SSH, archives, text processing, pipes/redirection, and system info.\"},{\"question\":\"Which commands are provided for listing directories and file details?\",\"answer\":\"The sheet includes ls, with options such as -la for detailed listing, -lh for human-readable sizes, and -R for recursive listing.\"},{\"question\":\"How does the cheatsheet help with finding patterns inside files?\",\"answer\":\"It provides grep usage, including recursive search (-r), case-insensitive matching (-i), line numbers (-n), and inverted matching (-v).\"}]","Linux Commands Cheatsheet - Quick reference for essential Linux commands | PDF",1791915346]