

When you want to edit a text file, you’ll use a text editor. Most things in Linux are configured using files, so it’s good to know these commands. Now we’re getting to the really useful commands! These are the commands that you’ll use to manipulate files and create new ones. # Delete the directory `songs` and all files in it, without prompting! (warning, use this with caution!) $ rm -rf songs # Delete the file `myfile.txt` $ rm myfile.txt If this page seems like something that your Linux-loving friends would appreciate, then why not give it a share? It lets the algorithm know that it’s not too bad.
CONSOLE COMMAND FIND FILE LINUX INSTALL
Command Description Why the name? 🙋 Help! (and WTF) man Show help (the manual) manual which Find out where a command is which location? -help Find help on any command help! Ctrl+C Stop the current program :q! Quit the vi text editor without saving quit! 👤 Logging in and out logout Exit the current login shell passwd Change your password password sudo Execute a command as a superuser super-user do ssh Create an SSH connection (a terminal) to a server secure shell 🗂️ Move around the file system cd Change the current directory (folder) change directory ls List files in a directory list mkdir Make/create a new directory make directory pwd Print current directory print working directory cp Copy files and directories copy rm Delete files and directories remove 📝 Find, view and edit files cat Print the contents of a file concatenate chmod Change the permissions of a file or directory change mode chown Change the owner and group of a file or directory change owner diff Show the difference between two files difference file Show the type of a file less Browse the contents of a file opposite of 'more' locate Find files with names matching a pattern tail Print the last few lines of a file tail end (of something) touch Create a new file or update an existing one nano An interactive file editor Nano's ANOther Editor vim An interactive file editor (Intermediate level) visual improved 📦 Install programs dnf Install and manage packages in RHEL/Fedora dandified yum (?!!) apt Install and manage packages in Ubuntu Advanced Package Tool 📯 Networking curl Get a web page or API client URL dig Look up DNS information domain information gather ip addr Show your network configuration IP address ping Check to see if a server is alive ⌚ Manage processes kill Terminate a program (process) top Show the top processes table of processes ps List running processes processes Ctrl+Z Suspend a process fg Resume a process foreground jobs Lists all active jobs (processes) ⚙️ System management cat /etc/redhat-release Show Linux distribution name & version date Show the current date and time df Show free disk space disk free du Show disk space usage disk used shutdown Halt or reboot your machine uname Print system information unix name uptime Show how long the system has been running The table below contains a big list of all the Linux commands that we’ve covered in this guide.įor most commands we also give the reason behind the rather cryptic name, to help you remember it!Ĭlick on a command name to jump straight to its entry, and see one or two examples, or just scroll down to read the whole lot.

CONSOLE COMMAND FIND FILE LINUX HOW TO
'top' command explained: How to monitor system usage Advertisements All the commands.Linux for DevOps: What you need to know.And that’s inspired me to create this big list!īefore we dive into the list, don’t forget to check out our other Linux articles: (We’re human, after all!)īut, there are some commands which you’ll probably use more than others.
/001_uses-of-linux-command-find-2201100-5bd8f0ab46e0fb00518c616a.png)
Well, let me tell you a little secret: most Linux users don’t remember every single command. How could you possibly remember every single command in Linux? When you’re learning Linux, it can seem like you need to memorise a bunch of stuff. Here are 45 of the most useful Linux commands, all in one place. Overwhelmed by all the Linux commands you think you need to know? Perplexed by pwd? Well, you can rest easy now, you’ve found the right page.
