[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-573774-105":53,"doc-detail-573774-en":125},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":118,"head_meta":120,"extra_data":122,"updated_unix":124},105,"en","mastering-the-linux-file-system-cheat-sheet-basic-navigation-and-listing-files","Mastering the Linux File System - Cheat Sheet - Basic Navigation and Listing Files","","A practical Linux command cheat sheet focused on navigating the filesystem and managing files efficiently. It covers core directory and listing commands (pwd, ls with common flags), essential file and directory operations (touch, cat, cp, mv, rm, mkdir, rmdir), and basic viewing/editing tools (more, less, head, tail, nano, vim). Additional sections explain permissions management (chmod, chown, chgrp), searching techniques (find, locate, grep variants), and data handling with sort, awk, sed, and compression plus disk usage basics.",{"@graph":63,"@context":117},[64,80,100],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":11,"@type":70,"position":76},"https://docshare.wps.com/template/presentations/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/mastering-the-linux-file-system-cheat-sheet-basic-navigation-and-listing-files/573774/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":94,"encodingFormat":93,"isAccessibleForFree":95,"interactionStatistic":96},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/mastering-the-linux-file-system-cheat-sheet-basic-navigation-and-listing-files/573774.png","ImageObject",442,249,{"name":88,"@type":89},"Ivy","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-10-14",true,{"@type":97,"interactionType":98,"userInteractionCount":9},"InteractionCounter",{"@type":99},"ViewAction",{"@type":101,"mainEntity":102},"FAQPage",[103,109,113],{"name":104,"@type":105,"acceptedAnswer":106},"How do I check my current working directory in Linux?","Question",{"text":107,"@type":108},"Use pwd to print the current working directory path.","Answer",{"name":110,"@type":105,"acceptedAnswer":111},"Which commands can list files including hidden ones and show detailed information?",{"text":112,"@type":108},"Use ls -a to include hidden files, and ls -l for a long listing showing permissions, size, owner, and more.",{"name":114,"@type":105,"acceptedAnswer":115},"How can I search for text patterns inside files and directories?",{"text":116,"@type":108},"Use find to search by file name and grep to search by text. grep supports options like -i for case-insensitive matching and -r for recursive directory search.","https://schema.org",{"og:url":78,"og:type":119,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":121,"canonical":78},"index,follow",{"doc_id":123,"site_id":56},573774,1792015577,{"code":4,"msg":5,"data":126},{"doc_id":123,"user_id":127,"nickname":88,"user_avatar":128,"doc_module":9,"category_id":8,"category_name":11,"doc_title":59,"doc_description":61,"doc_content":129,"file_id":130,"file_url":131,"file_type":132,"file_size":133,"view_count":9,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":134,"language":135,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":136,"faqs":137,"seo_title":138,"seo_description":61,"update_tm":139,"read_time":47},549758252649,"https://ap-avatar.wpscdn.com/avatar/8000253669c5317157?_k=1778319167496531819","Mastering the Linux File System: Cheat Sheet  \nBasic Navigation and Listing Files  \n\n| Command Description |  |\n| --- | --- |\n| pwd | Print current working directory |\n| ls | List directory contents |\n| ls -l | Long listing format (permissions, size, owner, etc.) |\n| ls -a | List all files, including hidden files (starting with .) |\n| ls -lh | Long listing format with human-readable file sizes |\n| cd [directory] | Change directory to [directory] |\n| cd   | Move to the parent directory |\n| cd ~ | Go to the home directory |\n| cd - | Go to the previous directory |\n\nFile and Directory Operations  \n| Command Description |  |\n| --- | --- |\n| touch [filename] | Create an empty file or update the timestamp of an existing file |\n| cat [filename] | View the contents of a file |\n| cp [source] [destination] | Copy file from source to destination |\n| cp -r [source] [destination] | Copy a directory recursively |\n| mv [source] [destination] | Move or rename a file or directory |\n| rm [filename] | Remove a file |\n| rm-r [directory] | Remove a directory recursively |\n| rm-f [filename] | Force delete a file (without confirmation) |\n| mkdir [directory] | Create a new directory |\n| rmdir [directory] | Remove an empty directory |\n\nFile Viewing and Editing  \n\n| Command Description |  |\n| --- | --- |\n| cat [filename] | Concatenate and display the contents of a file |\n| more [filename] | View file contents page by page (forward navigation) |\n| less [filename] | View file contents page by page (allows both forward and backward navigation) |\n| head [filename] | Display the first 10 lines of a file |\n| head -n [number] [filename] | Display the first [number] lines of a file |\n| tail [filename] | Display the last 10 lines of a file |\n| tail -n [number] [filename] | Display the last [number] lines of a file |\n| nano [filename] | Open a file in the Nano text editor |\n| vim [filename] | Open a file in the Vim text editor |\n\nFile Permissions  \n\n| Command Description |  |\n| --- | --- |\n| chmod [permissions] [file] | Change file permissions (e.g., chmod 755 filename) |\n| chown [user]:[group] [file] | Change file owner and group |\n| chgrp [group] [file] | Change group ownership of a file |\n\nFile Search  \n\n| Command Description |  |\n| --- | --- |\n| find [directory] -name [name] | Search for files by name in a directory |\n| locate [filename] | Find the location of a file using an indexed database |\n| grep [pattern] [file] | Search for a pattern in a file |\n| grep -r [pattern] [directory] | Recursively search for a pattern in a directory |\n\nText Searching with grep  \n| Command Description |  |\n| --- | --- |\n| grep [pattern] [file] | Search for a pattern in a file |\n| grep -i [pattern] [file] | Case-insensitive search for a pattern |\n| grep -r [pattern] [directory] | Recursively search for a pattern in a directory |\n| grep -v [pattern] [file] | Invert match (display lines that do not match the pattern) |\n| grep -n [pattern] [file] | Display matching lines with line numbers |\n| grep -o [pattern] [file] | Show only the matching part of the lines |\n| grep -c [pattern] [file] | Count the occurrences of a pattern |\n\nSorting Data  \n\n| Command Description |  |\n| --- | --- |\n| sort [file] | Sort lines in a file alphabetically |\n| sort -r [file] | Sort lines in reverse order |\n| sort -n [file] | Sort lines numerically |\n| sort -k [column] [file] | Sort by a specific column |\n| sort -t [delimiter] -k [column] [file] | Sort using a custom delimiter and column (e.g., -t\",\" for CSV files) |\n| sort -u [file] | Sort and remove duplicate lines |\n\nText Processing with awk  \n\n| Command Description |  |\n| --- | --- |\n| awk '{print $1}' [file] | Print the first column from a file |\n| awk '{print $1, $3}' [file] | Print the first and third columns |\n| awk '/pattern/ {print $0}' [file] | Print lines that match a pattern |\n| awk '{sum += $1} END {print sum}' [file] | Calculate the sum of the first column |\n| awk 'BEGIN {FS=\",\"} {print $1, $2}' [file] | Set a custom field separator and pr","cbCaiobmhAujJOR2","https://ap.wps.com/l/cbCaiobmhAujJOR2","pdf",841381,13,"English","# Basic Navigation and Listing Files\n# File and Directory Operations\n# File Viewing and Editing\n# File Permissions\n# File Search\n# Text Searching with grep\n# Sorting Data\n# Text Processing with awk\n# Text Processing with sed\n# Text Processing with cut\n# File Compression and Archiving\n# Disk Usage and Space Management\n# Links","[{\"question\":\"How do I check my current working directory in Linux?\",\"answer\":\"Use pwd to print the current working directory path.\"},{\"question\":\"Which commands can list files including hidden ones and show detailed information?\",\"answer\":\"Use ls -a to include hidden files, and ls -l for a long listing showing permissions, size, owner, and more.\"},{\"question\":\"How can I search for text patterns inside files and directories?\",\"answer\":\"Use find to search by file name and grep to search by text. grep supports options like -i for case-insensitive matching and -r for recursive directory search.\"}]","Mastering the Linux File System - Cheat Sheet - Basic Navigation and Listing Files | PDF",1791945689]