[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"categories-en":3,"cheatsheet:\u002Fcheatsheets\u002Flinux-terminal-vital-commands":37},[4,11,17,24,30],{"id":5,"slug":6,"name":7,"colorHex":8,"iconName":9,"postCount":10},"0e2c1225-f78a-4c20-8c93-998ab9dc93b9","frontend","Frontend","#40484f",null,25,{"id":12,"slug":13,"name":14,"colorHex":15,"iconName":9,"postCount":16},"bc8df70e-b7fb-4d89-a80c-fd458d36d58c","code-development","Code & Development","#8b5cf6",23,{"id":18,"slug":19,"name":20,"colorHex":21,"iconName":22,"postCount":23},"550e8400-e29b-41d4-a716-446655440001","inteligencia-artificial","Artificial Intelligence","#6366f1","brain",14,{"id":25,"slug":26,"name":27,"colorHex":28,"iconName":9,"postCount":29},"ea63b69c-2eb4-4100-81f3-70ce52d33743","tech-news","Tech News","#e50606",4,{"id":31,"slug":32,"name":33,"colorHex":34,"iconName":35,"postCount":36},"550e8400-e29b-41d4-a716-446655440017","how-to-guides","How-To & Guides","#be123c","book-open",2,{"id":38,"slug":39,"title":40,"description":41,"category":42,"level":43,"codeLanguage":44,"views":45,"updatedAt":46,"tags":47,"sections":53,"snippetCount":294},"9846a114-9c0f-4227-b6f9-0491c73b6968","linux-terminal-vital-commands","Linux Terminal: Vital Commands","Lose the fear of the black screen. Navigate folders, manage files and control the server without touching the mouse. Survival basics.","devops","intermediate","Bash",3,"2026-04-13T01:38:54.717326+00:00",[48,49,50,51,52,42],"linux","bash","shell","cli","terminal",[54,94,127,167,207,247],{"id":55,"title":56,"description":57,"snippets":58},"c889b606-b529-49ca-a7ca-2cbaa2d4f16c","File Management","Fundamental commands for navigating and manipulating files and directories on Linux.",[59,66,73,80,87],{"id":60,"title":61,"description":62,"code":63,"language":49,"filename":9,"whenToUse":64,"highlighted":65},"ba9d8aad-8026-4303-ab6a-ef5c05425b59","List Detailed Files","Lists all files including hidden ones with permission, size, and date details","ls -lah","When you need to view all files with detailed information, including hidden files (starting with .)","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">ls\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -lah\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":67,"title":68,"description":69,"code":70,"language":49,"filename":9,"whenToUse":71,"highlighted":72},"8816f62c-ee8b-458a-9d98-a79363e9330a","Copy Files Recursively","Copies directories and their content recursively, preserving attributes","cp -r \u002Forigem \u002Fdestino","For backing up entire directories or duplicating folder structures","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">cp\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -r \u002Forigem \u002Fdestino\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":74,"title":75,"description":76,"code":77,"language":49,"filename":9,"whenToUse":78,"highlighted":79},"caa0418f-d336-4ef2-ae73-52d343f61bb9","Move or Rename Files","Moves files\u002Fdirectories or renames if destination is in the same directory","mv arquivo.txt \u002Fnovo\u002Fcaminho\u002F\nmv arquivo_antigo.txt arquivo_novo.txt","To organize files or rename them directly via the terminal","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">mv\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> arquivo.txt \u002Fnovo\u002Fcaminho\u002F\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">mv\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> arquivo_antigo.txt arquivo_novo.txt\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":81,"title":82,"description":83,"code":84,"language":49,"filename":9,"whenToUse":85,"highlighted":86},"ea91d9bf-0a3c-4896-8557-5e6fcfabe278","Find Files by Name","Locates files in the system recursively using glob patterns","find \u002Fcaminho -name \"*.log\"\nfind . -type f -name \"config*\"","When you need to locate specific files in large directory structures","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">find\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> \u002Fcaminho -name \"*.log\"\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">find\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> . -type f -name \"config*\"\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":88,"title":89,"description":90,"code":91,"language":49,"filename":9,"whenToUse":92,"highlighted":93},"d667511a-b628-40ac-8335-1fa13384b1af","Create nested directories","Creates multiple levels of directories at once","mkdir -p \u002Fprojeto\u002Fsrc\u002Fcomponents\u002Fui","To quickly create complex folder structures without needing to create each level manually","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">mkdir\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -p \u002Fprojeto\u002Fsrc\u002Fcomponents\u002Fui\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":95,"title":96,"description":97,"snippets":98},"bcba6687-f5b8-481c-a81c-399e3c08b50c","Permissions and Ownership","File and directory access control using chmod, chown, and umask.",[99,106,113,120],{"id":100,"title":101,"description":102,"code":103,"language":49,"filename":9,"whenToUse":104,"highlighted":105},"5dd999f9-afd2-4800-8014-4a9250269734","Change Permissions Numerically","Sets permissions using octal notation (rwx = 7, rw- = 6, r-x = 5)","chmod 755 script.sh\nchmod 644 arquivo.txt","755 for executables (rwxr-xr-x), 644 for data files (rw-r--r--)","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">chmod\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> 755 script.sh\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">chmod\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> 644 arquivo.txt\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":107,"title":108,"description":109,"code":110,"language":49,"filename":9,"whenToUse":111,"highlighted":112},"accaaf53-99db-453a-89db-e330c325a097","Change Permissions Symbolically","Modifies permissions using symbolic notation (u=user, g=group, o=others)","chmod u+x script.sh\nchmod go-w arquivo.txt","When you want to modify specific permissions without changing others","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">chmod\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> u+x script.sh\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">chmod\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> go-w arquivo.txt\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":114,"title":115,"description":116,"code":117,"language":49,"filename":9,"whenToUse":118,"highlighted":119},"98ee7d4a-bdb7-47c4-bc7d-a3205eb29093","Change Owner Recursively","Changes the owner and group of files\u002Fdirectories recursively","chown -R usuario:grupo \u002Fvar\u002Fwww\u002Fhtml","To correct permissions after deployment or web server configuration","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">chown\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -R usuario:grupo \u002Fvar\u002Fwww\u002Fhtml\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":121,"title":122,"description":123,"code":124,"language":49,"filename":9,"whenToUse":125,"highlighted":126},"b9f36ef0-bac2-403f-88f3-22e8a2683dce","View Octal Permissions","Displays file permissions in numeric format","stat -c '%a %n' arquivo.txt","To quickly check the numeric value of current permissions","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">stat\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -c '%a %n' arquivo.txt\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":128,"title":129,"description":130,"snippets":131},"a19fb943-ad1e-412e-93c8-d607f0bdd113","Process Management","Monitoring, controlling, and manipulating running processes on the system.",[132,139,146,153,160],{"id":133,"title":134,"description":135,"code":136,"language":49,"filename":9,"whenToUse":137,"highlighted":138},"a4cada93-9a88-44d5-b438-d95c85e11e3e","List User Processes","Displays all processes of the current user with CPU and memory details","ps aux | grep usuario\nps -ef | grep nginx","To identify PIDs of specific processes or diagnose resource usage","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">ps\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> aux | grep usuario\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">ps\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -ef | grep nginx\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":140,"title":141,"description":142,"code":143,"language":49,"filename":9,"whenToUse":144,"highlighted":145},"b1d314c7-49ab-466d-8d5f-9f4bd8d12802","Monitor Processes in Real-time","Interactive interface with real-time process updates","top\nhtop","For continuous monitoring of CPU, memory, and identifying problematic processes","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">top\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">htop\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":147,"title":148,"description":149,"code":150,"language":49,"filename":9,"whenToUse":151,"highlighted":152},"479fc8dc-036c-4421-a7c7-5c0e0f429b02","Kill Process by PID","Terminates process using different signal levels","kill 1234\nkill -9 1234\nkill -SIGTERM 1234","kill for graceful termination, kill -9 to force immediate termination","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">kill\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> 1234\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">kill\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -9 1234\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">kill\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -SIGTERM 1234\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":154,"title":155,"description":156,"code":157,"language":49,"filename":9,"whenToUse":158,"highlighted":159},"e2c37c82-954c-4733-970a-eea877df8706","Kill Process by Name","Terminates all processes matching the name","pkill nginx\nkillall node","When you know the process name but not the PID","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">pkill\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> nginx\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">killall\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> node\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":161,"title":162,"description":163,"code":164,"language":49,"filename":9,"whenToUse":165,"highlighted":166},"b48b42c7-f6a8-4a9f-ac71-cee2af1d2c40","Run process in background","Starts process in the background, freeing up the terminal","npm run dev &\nnohup python3 script.py &","To run long scripts without blocking the terminal (nohup keeps it running after logout)","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">npm\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> run dev &#x26;\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">nohup\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> python3 script.py &#x26;\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":168,"title":169,"description":170,"snippets":171},"c0032865-2b76-4853-a635-6e6643af602b","Network and Connectivity","Tools for network diagnostics, file transfer, and connectivity testing.",[172,179,186,193,200],{"id":173,"title":174,"description":175,"code":176,"language":49,"filename":9,"whenToUse":177,"highlighted":178},"373eaa24-9daf-492c-909f-1c73d476c260","Test Connectivity","Sends ICMP packets to check if the host is reachable","ping -c 4 google.com\nping 192.168.1.1","To check network connectivity and latency (-c limits the number of packets)","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">ping\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -c 4 google.com\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">ping\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> 192.168.1.1\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":180,"title":181,"description":182,"code":183,"language":49,"filename":9,"whenToUse":184,"highlighted":185},"f8212891-f050-4153-a247-b3a069c3ad36","Download Files","Downloads files from the web via HTTP\u002FHTTPS","wget https:\u002F\u002Fexample.com\u002Ffile.zip\ncurl -O https:\u002F\u002Fexample.com\u002Ffile.tar.gz","wget for simple downloads, curl for APIs and more complex requests","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">wget\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> https:\u002F\u002Fexample.com\u002Ffile.zip\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">curl\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -O https:\u002F\u002Fexample.com\u002Ffile.tar.gz\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":187,"title":188,"description":189,"code":190,"language":49,"filename":9,"whenToUse":191,"highlighted":192},"7a2b047a-39bc-4dcf-8442-eabe1854ea49","View Ports in Use","Lists all open TCP\u002FUDP ports and associated processes","netstat -tulpn\nss -tulpn","To identify port conflicts or check if a service is listening","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">netstat\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -tulpn\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">ss\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -tulpn\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":194,"title":195,"description":196,"code":197,"language":49,"filename":9,"whenToUse":198,"highlighted":199},"4484ba6e-1e1a-4169-a9a0-77314cfc88ab","Secure Transfer (SCP)","Copies files between machines via SSH","scp arquivo.txt user@servidor:\u002Fpath\u002F\nscp -r \u002Fpasta user@servidor:\u002Fdestino","To securely transfer files between servers (use -r for directories)","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">scp\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> arquivo.txt user@servidor:\u002Fpath\u002F\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">scp\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -r \u002Fpasta user@servidor:\u002Fdestino\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":201,"title":202,"description":203,"code":204,"language":49,"filename":9,"whenToUse":205,"highlighted":206},"a5310ec2-5576-4964-8e8b-822682c9f5a9","Check External IP","Discovers the machine's public IP address","curl ifconfig.me\nwget -qO- ifconfig.me","To know your public IP when working remotely or configuring firewalls","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">curl\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> ifconfig.me\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">wget\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -qO- ifconfig.me\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":208,"title":209,"description":210,"snippets":211},"d2b061c3-d327-4ee7-b942-bcf083b44450","Package Management","Installing, updating, and removing software using package managers (APT\u002FYUM).",[212,219,226,233,240],{"id":213,"title":214,"description":215,"code":216,"language":49,"filename":9,"whenToUse":217,"highlighted":218},"9cd334d8-3671-4876-9982-51212258a4bb","Update Package List (Debian\u002FUbuntu)","Synchronizes the list of available packages with repositories","sudo apt update","Always before installing new packages to ensure updated versions","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">sudo\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> apt update\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":220,"title":221,"description":222,"code":223,"language":49,"filename":9,"whenToUse":224,"highlighted":225},"80c47193-0f69-4f7d-9cf6-5a17a281a385","Install Package (Debian\u002FUbuntu)","Downloads and installs package with all dependencies","sudo apt install nginx -y","To install software via official repositories (-y automatically confirms)","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">sudo\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> apt install nginx -y\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":227,"title":228,"description":229,"code":230,"language":49,"filename":9,"whenToUse":231,"highlighted":232},"a1056769-9404-487f-ae87-db68d89f573a","Update System (Debian\u002FUbuntu)","Updates all installed packages to newer versions","sudo apt update && sudo apt upgrade -y","Regular system maintenance for security patches and improvements","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">sudo\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> apt update &#x26;&#x26; sudo apt upgrade -y\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":234,"title":235,"description":236,"code":237,"language":49,"filename":9,"whenToUse":238,"highlighted":239},"5fffc4f2-078e-4b16-af52-06fb349c75fa","Remove Package (Debian\u002FUbuntu)","Uninstalls package, keeping configuration files","sudo apt remove pacote\nsudo apt purge pacote","remove keeps configs, purge removes everything (useful for clean reinstallation)","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">sudo\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> apt remove pacote\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">sudo\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> apt purge pacote\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":241,"title":242,"description":243,"code":244,"language":49,"filename":9,"whenToUse":245,"highlighted":246},"94752f61-d604-4893-a978-6be5c5bc6434","Search packages (Debian\u002FUbuntu)","Searches for available packages in repositories","apt search python3\napt-cache search nodejs","To find the exact package name before installing","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">apt\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> search python3\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">apt-cache\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> search nodejs\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":248,"title":249,"description":250,"snippets":251},"7808c081-02e1-4600-8cde-613589c645ae","System Information","Commands for getting hardware, OS, and resource usage information.",[252,259,266,273,280,287],{"id":253,"title":254,"description":255,"code":256,"language":49,"filename":9,"whenToUse":257,"highlighted":258},"9cc711ea-e17d-4cd1-be8c-2a398fd50e3d","Disk Usage","Displays used and available space on all mounted partitions","df -h","To check for sufficient disk space (-h displays in human-readable format)","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">df\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -h\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":260,"title":261,"description":262,"code":263,"language":49,"filename":9,"whenToUse":264,"highlighted":265},"1065d8ff-1efe-46a5-8140-ee927d885599","Directory Size","Calculates total size of directories and files","du -sh \u002Fvar\u002Flog\ndu -h --max-depth=1 \u002Fhome","To identify which directories are consuming the most space","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">du\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -sh \u002Fvar\u002Flog\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">du\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -h --max-depth=1 \u002Fhome\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":267,"title":268,"description":269,"code":270,"language":49,"filename":9,"whenToUse":271,"highlighted":272},"10fb78b6-6fc9-4f96-a533-60f90ad590ff","Memory Usage","Shows RAM and swap usage in human-readable format","free -h","To diagnose memory issues or check if swap is being used","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">free\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -h\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":274,"title":275,"description":276,"code":277,"language":49,"filename":9,"whenToUse":278,"highlighted":279},"a57a2af5-f704-40f5-926a-0bcc52ee1a5c","CPU Information","Displays processor details (model, cores, frequency)","lscpu\ncat \u002Fproc\u002Fcpuinfo","To check hardware specifications before optimizations","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">lscpu\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">cat\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> \u002Fproc\u002Fcpuinfo\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":281,"title":282,"description":283,"code":284,"language":49,"filename":9,"whenToUse":285,"highlighted":286},"f22002c0-9df1-4e18-8493-6bc6e3c7f78e","System uptime","Shows how long the system has been running and average load","uptime","To check server stability and load average","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">uptime\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",{"id":288,"title":289,"description":290,"code":291,"language":49,"filename":9,"whenToUse":292,"highlighted":293},"405f9ad6-3c7c-4c9c-bfcc-41f8b0397882","System version","Identifies Linux distribution and kernel version","uname -a\ncat \u002Fetc\u002Fos-release","To document environment or check software compatibility","\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">uname\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> -a\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">cat\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> \u002Fetc\u002Fos-release\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",30]