{"id":246,"date":"2026-06-23T23:58:59","date_gmt":"2026-06-23T18:28:59","guid":{"rendered":"https:\/\/giganodes.host\/blog\/linux-vps-commands-cheat-sheet-india\/"},"modified":"2026-10-29T14:53:33","modified_gmt":"2026-10-29T14:53:33","slug":"linux-vps-commands-cheat-sheet-india","status":"publish","type":"post","link":"https:\/\/giganodes.host\/blog\/linux-vps-commands-cheat-sheet-india","title":{"rendered":"Linux VPS Commands Cheat Sheet 2026 \u2014 Copy-Paste Ready"},"content":{"rendered":"<article style=\"background:#0a101e;color:#e2e8f0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;line-height:1.75;margin:0;padding:0;\">\n<div style=\"max-width:780px;margin:0 auto;padding:48px 24px 80px;\">\n<div style=\"font-size:13px;color:#64748b;margin-bottom:28px;\">\n  <a href=\"https:\/\/giganodes.host\" style=\"color:#64748b;text-decoration:none;\">GigaNodes<\/a><br \/>\n  <span style=\"margin:0 6px;\">\u203a<\/span><br \/>\n  <a href=\"https:\/\/giganodes.host\/blog\" style=\"color:#64748b;text-decoration:none;\">Blog<\/a><br \/>\n  <span style=\"margin:0 6px;\">\u203a<\/span><br \/>\n  <span>VPS Hosting India<\/span>\n<\/div>\n<div style=\"font-size:12px;font-weight:600;color:#00c8b4;text-transform:uppercase;letter-spacing:0.08em;margin-bottom:10px;\">VPS Hosting India \u00b7 June 2026<\/div>\n<h1 style=\"font-size:32px;font-weight:800;color:#fff;line-height:1.2;margin:0 0 16px;\">Linux VPS Commands Cheat Sheet 2026 \u2014 Copy-Paste Ready<\/h1>\n<div style=\"font-size:13px;color:#64748b;margin-bottom:36px;display:flex;gap:16px;flex-wrap:wrap;\">\n  <span>Mayank Sharma<\/span><span>\u00b7<\/span><span>June 2026<\/span><span>\u00b7<\/span><span>11 min read<\/span>\n<\/div>\n<div style=\"background:#0d1f12;border:1px solid #1a3a22;border-left:4px solid #4ade80;border-radius:8px;padding:20px 24px;margin-bottom:36px;\">\n<div style=\"font-size:11px;font-weight:700;color:#4ade80;text-transform:uppercase;letter-spacing:0.08em;margin-bottom:8px;\">Direct answer<\/div>\n<p style=\"font-size:15px;color:#e2e8f0;line-height:1.65;margin:0;\">Essential Linux VPS commands: <code>ls -la<\/code> (list files), <code>htop<\/code> (monitor CPU\/RAM), <code>df -h<\/code> (disk usage), <code>ufw status<\/code> (firewall), <code>systemctl status nginx<\/code> (web server status), <code>docker ps<\/code> (running containers), <code>pm2 list<\/code> (Node.js processes). All work on Ubuntu 24.04 \u2014 the default OS on <a href=\"https:\/\/giganodes.host\/vps\/india\" style=\"color:#00c8b4;text-decoration:none;font-weight:600;\">best VPS hosting India<\/a> like GigaNodes.<\/p>\n<\/div>\n<p style=\"color:#cbd5e1;margin-bottom:20px;\">Bookmark this page. Every command below is copy-paste ready and works on any Ubuntu VPS, including every <a href=\"https:\/\/giganodes.host\/vps\/india\" style=\"color:#00c8b4;text-decoration:none;\">GigaNodes VPS India<\/a> plan.<\/p>\n<h2 style=\"font-size:22px;font-weight:700;color:#fff;margin:40px 0 16px;\">1. Basic Navigation<\/h2>\n<div style=\"background:#0d1525;border:1px solid #1e293b;border-radius:8px;padding:16px 20px;margin-bottom:20px;font-family:'Courier New',monospace;font-size:13px;color:#00c8b4;overflow-x:auto;white-space:pre;\">pwd                 # print working directory<br \/>\nls                  # list files<br \/>\nls -la              # list all files with details<br \/>\ncd \/path\/to\/dir     # change directory<br \/>\nmkdir newfolder     # create directory<br \/>\nrmdir emptyfolder   # remove empty directory<\/div>\n<h2 style=\"font-size:22px;font-weight:700;color:#fff;margin:40px 0 16px;\">2. File Management<\/h2>\n<div style=\"background:#0d1525;border:1px solid #1e293b;border-radius:8px;padding:16px 20px;margin-bottom:20px;font-family:'Courier New',monospace;font-size:13px;color:#00c8b4;overflow-x:auto;white-space:pre;\">cp file.txt \/backup\/      # copy file<br \/>\nmv file.txt newname.txt   # move\/rename file<br \/>\nrm -rf folder\/             # delete folder and contents<br \/>\nchmod 755 script.sh        # change permissions<br \/>\nchown user:group file.txt  # change ownership<br \/>\nfind \/ -name &#8220;*.log&#8221;       # find files by name<br \/>\ngrep &#8220;error&#8221; file.log      # search text inside file<br \/>\ncat file.txt                # print file contents<br \/>\nnano file.txt                # edit file (beginner friendly)<br \/>\nvim file.txt                  # edit file (advanced)<\/div>\n<h2 style=\"font-size:22px;font-weight:700;color:#fff;margin:40px 0 16px;\">3. Server Monitoring<\/h2>\n<div style=\"background:#0d1525;border:1px solid #1e293b;border-radius:8px;padding:16px 20px;margin-bottom:20px;font-family:'Courier New',monospace;font-size:13px;color:#00c8b4;overflow-x:auto;white-space:pre;\">htop                # interactive CPU\/RAM monitor<br \/>\ntop                 # classic process monitor<br \/>\ndf -h               # disk usage (human readable)<br \/>\nfree -m             # RAM usage in MB<br \/>\ndu -sh folder\/      # folder size<br \/>\nnetstat -tulpn      # open ports and listening services<br \/>\nss -tulpn           # modern alternative to netstat<br \/>\nuptime              # server uptime and load average<br \/>\niostat              # disk I\/O stats<br \/>\nvmstat              # virtual memory stats<\/div>\n<h2 style=\"font-size:22px;font-weight:700;color:#fff;margin:40px 0 16px;\">4. Process Management<\/h2>\n<div style=\"background:#0d1525;border:1px solid #1e293b;border-radius:8px;padding:16px 20px;margin-bottom:20px;font-family:'Courier New',monospace;font-size:13px;color:#00c8b4;overflow-x:auto;white-space:pre;\">ps aux                       # list all running processes<br \/>\nkill [pid]                   # stop a process by ID<br \/>\nkillall nginx                # stop all processes by name<br \/>\nsystemctl start nginx        # start a service<br \/>\nsystemctl stop nginx         # stop a service<br \/>\nsystemctl restart nginx      # restart a service<br \/>\nsystemctl status nginx       # check service status<br \/>\nsystemctl enable nginx       # auto-start service on boot<br \/>\njournalctl -u nginx          # view service logs<\/div>\n<h2 style=\"font-size:22px;font-weight:700;color:#fff;margin:40px 0 16px;\">5. PM2 (Node.js Process Manager)<\/h2>\n<div style=\"background:#0d1525;border:1px solid #1e293b;border-radius:8px;padding:16px 20px;margin-bottom:20px;font-family:'Courier New',monospace;font-size:13px;color:#00c8b4;overflow-x:auto;white-space:pre;\">pm2 start app.js &#8211;name myapp   # start an app<br \/>\npm2 list                        # list running apps<br \/>\npm2 stop myapp                  # stop an app<br \/>\npm2 restart myapp               # restart an app<br \/>\npm2 logs myapp                  # view logs<br \/>\npm2 monit                       # live monitoring dashboard<br \/>\npm2 startup                     # enable auto-start on boot<br \/>\npm2 save                        # save current process list<\/div>\n<h2 style=\"font-size:22px;font-weight:700;color:#fff;margin:40px 0 16px;\">6. Firewall (UFW)<\/h2>\n<div style=\"background:#0d1525;border:1px solid #1e293b;border-radius:8px;padding:16px 20px;margin-bottom:20px;font-family:'Courier New',monospace;font-size:13px;color:#00c8b4;overflow-x:auto;white-space:pre;\">ufw enable             # turn on firewall<br \/>\nufw status             # check firewall status<br \/>\nufw allow 22           # allow SSH<br \/>\nufw allow 80,443\/tcp   # allow HTTP\/HTTPS<br \/>\nufw deny 8080          # block a port<br \/>\nufw delete allow 8080  # remove a rule<br \/>\nufw reset              # reset all rules<\/div>\n<h2 style=\"font-size:22px;font-weight:700;color:#fff;margin:40px 0 16px;\">7. Nginx<\/h2>\n<div style=\"background:#0d1525;border:1px solid #1e293b;border-radius:8px;padding:16px 20px;margin-bottom:20px;font-family:'Courier New',monospace;font-size:13px;color:#00c8b4;overflow-x:auto;white-space:pre;\">nginx -t                          # test config for errors<br \/>\nsystemctl restart nginx           # apply config changes<br \/>\n# Config location: \/etc\/nginx\/sites-available\/<br \/>\n# Logs location: \/var\/log\/nginx\/access.log and error.log<\/div>\n<h2 style=\"font-size:22px;font-weight:700;color:#fff;margin:40px 0 16px;\">8. Docker<\/h2>\n<div style=\"background:#0d1525;border:1px solid #1e293b;border-radius:8px;padding:16px 20px;margin-bottom:20px;font-family:'Courier New',monospace;font-size:13px;color:#00c8b4;overflow-x:auto;white-space:pre;\">docker ps                     # running containers<br \/>\ndocker ps -a                  # all containers including stopped<br \/>\ndocker images                 # list downloaded images<br \/>\ndocker run -d image_name      # run a container<br \/>\ndocker stop container_id      # stop a container<br \/>\ndocker rm container_id        # remove a container<br \/>\ndocker logs container_id      # view container logs<br \/>\ndocker exec -it container_id bash   # open shell inside container<br \/>\ndocker compose up -d          # start services from compose file<br \/>\ndocker compose down           # stop services from compose file<br \/>\ndocker system prune           # clean up unused images\/containers<\/div>\n<h2 style=\"font-size:22px;font-weight:700;color:#fff;margin:40px 0 16px;\">9. File Transfer<\/h2>\n<div style=\"background:#0d1525;border:1px solid #1e293b;border-radius:8px;padding:16px 20px;margin-bottom:20px;font-family:'Courier New',monospace;font-size:13px;color:#00c8b4;overflow-x:auto;white-space:pre;\">scp file.txt user@ip:\/path\/        # copy file to remote server<br \/>\nrsync -avz folder\/ user@ip:\/path\/  # sync folders efficiently<br \/>\nwget https:\/\/example.com\/file.zip  # download a file<br \/>\ncurl -O https:\/\/example.com\/file.zip   # download with curl<\/div>\n<h2 style=\"font-size:22px;font-weight:700;color:#fff;margin:40px 0 16px;\">10. Logs<\/h2>\n<div style=\"background:#0d1525;border:1px solid #1e293b;border-radius:8px;padding:16px 20px;margin-bottom:20px;font-family:'Courier New',monospace;font-size:13px;color:#00c8b4;overflow-x:auto;white-space:pre;\">tail -f \/var\/log\/nginx\/access.log         # live tail a log file<br \/>\njournalctl -f                             # live tail system logs<br \/>\ngrep &#8220;error&#8221; \/var\/log\/nginx\/error.log     # search for errors in logs<\/div>\n<h2 style=\"font-size:22px;font-weight:700;color:#fff;margin:40px 0 16px;\">11. Cron Jobs<\/h2>\n<div style=\"background:#0d1525;border:1px solid #1e293b;border-radius:8px;padding:16px 20px;margin-bottom:20px;font-family:'Courier New',monospace;font-size:13px;color:#00c8b4;overflow-x:auto;white-space:pre;\">crontab -e   # edit scheduled tasks<br \/>\ncrontab -l   # list scheduled tasks<\/p>\n<p># Cron syntax: * * * * * command<br \/>\n#              | | | | |<br \/>\n#              | | | | +&#8211; day of week (0-6)<br \/>\n#              | | | +&#8212;- month (1-12)<br \/>\n#              | | +&#8212;&#8212; day of month (1-31)<br \/>\n#              | +&#8212;&#8212;&#8211; hour (0-23)<br \/>\n#              +&#8212;&#8212;&#8212;- minute (0-59)<\/p><\/div>\n<div style=\"background:#0d1525;border:1px solid #1e293b;border-left:4px solid #ff6b2b;border-radius:8px;padding:20px 24px;margin:32px 0;\">\n<div style=\"font-size:11px;font-weight:700;color:#ff6b2b;text-transform:uppercase;letter-spacing:0.08em;margin-bottom:8px;\">Why GigaNodes for VPS India<\/div>\n<p style=\"font-size:14px;color:#e2e8f0;margin:0;\">AMD EPYC 7C13 \u00b7 141,108 IOPS (2.4x faster than DigitalOcean) \u00b7 <a href=\"https:\/\/giganodes.host\/ddos-protection\" style=\"color:#00c8b4;text-decoration:none;\">Cloudflare Magic Transit DDoS<\/a> included free \u00b7 UPI accepted \u00b7 GST invoice \u00b7 Yotta DC Noida \u00b7 Cloudflare Magic Transit DDoS protection included \u00b7 <a href=\"https:\/\/giganodes.host\/vps\/india\" style=\"color:#ff6b2b;font-weight:600;text-decoration:none;\">VPS from \u20b9600\/mo \u2192<\/a><\/p>\n<\/div>\n<h2 style=\"font-size:22px;font-weight:700;color:#fff;margin:40px 0 16px;\">Frequently Asked Questions<\/h2>\n<div style=\"border-bottom:1px solid #1e293b;padding:18px 0;\">\n<div style=\"font-size:15px;font-weight:700;color:#fff;margin-bottom:8px;\">What are the most important Linux commands for VPS beginners in India?<\/div>\n<div style=\"font-size:14px;color:#94a3b8;line-height:1.65;\">Start with these: ls -la (list files), cd (navigate), htop (monitor resources), df -h (check disk), ufw (firewall), systemctl (manage services), and docker (containers). All work on Ubuntu 24.04 which comes pre-installed on GigaNodes VPS India from \u20b9600\/mo.<\/div>\n<\/div>\n<div style=\"border-bottom:1px solid #1e293b;padding:18px 0;\">\n<div style=\"font-size:15px;font-weight:700;color:#fff;margin-bottom:8px;\">How do I monitor CPU and RAM usage on VPS India?<\/div>\n<div style=\"font-size:14px;color:#94a3b8;line-height:1.65;\">Run htop for real-time CPU and RAM monitoring. Run free -m for quick RAM check. Run df -h for disk usage. On GigaNodes VPS India all these work out of the box on Ubuntu 24.04.<\/div>\n<\/div>\n<div style=\"border-bottom:1px solid #1e293b;padding:18px 0;\">\n<div style=\"font-size:15px;font-weight:700;color:#fff;margin-bottom:8px;\">How do I restart Nginx on Ubuntu VPS?<\/div>\n<div style=\"font-size:14px;color:#94a3b8;line-height:1.65;\">Run sudo systemctl restart nginx. Test config first with nginx -t. Logs are at \/var\/log\/nginx\/error.log. Works the same on all GigaNodes VPS India plans running Ubuntu 24.04.<\/div>\n<\/div>\n<div style=\"border-bottom:1px solid #1e293b;padding:18px 0;\">\n<div style=\"font-size:15px;font-weight:700;color:#fff;margin-bottom:8px;\">What is the best VPS for learning Linux in India?<\/div>\n<div style=\"font-size:14px;color:#94a3b8;line-height:1.65;\">GigaNodes Cloud Nano (\u20b9600\/mo) is ideal for learning Linux \u2014 full root access on Ubuntu 24.04, AMD EPYC 7C13, Cloudflare Magic Transit DDoS, UPI payment, GST invoice. Start cheap and upgrade anytime.<\/div>\n<\/div>\n<div style=\"margin-top:40px;\">\n<h3 style=\"font-size:16px;font-weight:700;color:#fff;margin-bottom:14px;\">Related guides<\/h3>\n<div style=\"display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;\">\n    <a href=\"https:\/\/giganodes.host\/blog\/top-5-vps-providers-india-march-2026\" style=\"display:block;background:#0d1525;border:1px solid #1e293b;border-radius:8px;padding:14px 16px;text-decoration:none;\"><\/p>\n<div style=\"font-size:10px;color:#00c8b4;text-transform:uppercase;letter-spacing:0.06em;font-weight:600;margin-bottom:5px;\">Comparison<\/div>\n<div style=\"font-size:13px;font-weight:600;color:#e2e8f0;line-height:1.4;\">Best VPS Hosting India 2026<\/div>\n<p>    <\/a><br \/>\n    <a href=\"https:\/\/giganodes.host\/vps\/india\" style=\"display:block;background:#0d1525;border:1px solid #1e293b;border-radius:8px;padding:14px 16px;text-decoration:none;\"><\/p>\n<div style=\"font-size:10px;color:#00c8b4;text-transform:uppercase;letter-spacing:0.06em;font-weight:600;margin-bottom:5px;\">Product<\/div>\n<div style=\"font-size:13px;font-weight:600;color:#e2e8f0;line-height:1.4;\">VPS Hosting India \u2014 From \u20b9600\/mo<\/div>\n<p>    <\/a><br \/>\n    <a href=\"https:\/\/giganodes.host\/ddos-protection\" style=\"display:block;background:#0d1525;border:1px solid #1e293b;border-radius:8px;padding:14px 16px;text-decoration:none;\"><\/p>\n<div style=\"font-size:10px;color:#00c8b4;text-transform:uppercase;letter-spacing:0.06em;font-weight:600;margin-bottom:5px;\">Guide<\/div>\n<div style=\"font-size:13px;font-weight:600;color:#e2e8f0;line-height:1.4;\">Cloudflare Magic Transit DDoS<\/div>\n<p>    <\/a>\n  <\/div>\n<\/div>\n<div style=\"background:#0d2d2a;border:1px solid #1e3a36;border-radius:12px;padding:28px 32px;text-align:center;margin-top:48px;\">\n<h3 style=\"font-size:20px;font-weight:700;color:#fff;margin:0 0 10px;\">Get the Best VPS Hosting in India<\/h3>\n<p style=\"font-size:14px;color:#94a3b8;margin:0 0 8px;\">AMD EPYC 7C13 \u00b7 Cloudflare Magic Transit \u00b7 Yotta DC Noida \u00b7 UPI accepted \u00b7 GST invoice<\/p>\n<p style=\"font-size:12px;color:#64748b;margin:0 0 20px;\">No setup fee \u00b7 Deploy in 60 seconds<\/p>\n<div style=\"display:flex;gap:12px;justify-content:center;flex-wrap:wrap;\">\n    <a href=\"https:\/\/giganodes.host\/vps\/india\" style=\"display:inline-block;background:#ff6b2b;color:#fff;font-weight:700;font-size:14px;padding:12px 28px;border-radius:7px;text-decoration:none;\">See VPS Plans \u2192<\/a><br \/>\n    <a href=\"https:\/\/my.giganodes.host\/store\/epyc-vps-server-india\" style=\"display:inline-block;background:transparent;border:1px solid #00c8b4;color:#00c8b4;font-weight:700;font-size:14px;padding:12px 28px;border-radius:7px;text-decoration:none;\">Deploy Now \u2192<\/a>\n  <\/div>\n<\/div>\n<\/div>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>GigaNodes \u203a Blog \u203a VPS Hosting India VPS Hosting India \u00b7 June 2026 Linux VPS Commands Cheat Sheet 2026 \u2014 Copy-Paste Ready Mayank Sharma\u00b7June 2026\u00b711 min read Direct answer Essential Linux VPS commands: ls -la (list files), htop (monitor CPU\/RAM), df -h (disk usage), ufw status (firewall), systemctl status nginx (web server status), docker ps [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":97,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-246","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-tutorials"],"_links":{"self":[{"href":"https:\/\/giganodes.host\/blog\/wp-json\/wp\/v2\/posts\/246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/giganodes.host\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/giganodes.host\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/giganodes.host\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/giganodes.host\/blog\/wp-json\/wp\/v2\/comments?post=246"}],"version-history":[{"count":1,"href":"https:\/\/giganodes.host\/blog\/wp-json\/wp\/v2\/posts\/246\/revisions"}],"predecessor-version":[{"id":280,"href":"https:\/\/giganodes.host\/blog\/wp-json\/wp\/v2\/posts\/246\/revisions\/280"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/giganodes.host\/blog\/wp-json\/wp\/v2\/media\/97"}],"wp:attachment":[{"href":"https:\/\/giganodes.host\/blog\/wp-json\/wp\/v2\/media?parent=246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/giganodes.host\/blog\/wp-json\/wp\/v2\/categories?post=246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/giganodes.host\/blog\/wp-json\/wp\/v2\/tags?post=246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}