

There are variations you can use with the ls command: For example, enter ls /home/username/Documents to view the content of Documents. If you want to see the content of other directories, type ls and then the directory’s path. By default, this command will display the contents of your current working directory. The ls command is used to view the contents of a directory. So, you have to type the name’s directory exactly as it is. On a side note, Linux’s shell is case sensitive. cd- (with a hyphen) to move to your previous directory.There are some shortcuts to help you navigate quickly: In this case, you have to type cd followed by the directory’s absolute path: cd /home/username/Movies. To do so, simply type the following command: cd Photos.Īnother scenario is if you want to switch to a completely new directory, for example, /home/username/Movies. Let’s say you’re in /home/username/Documents and you want to go to Photos, a subdirectory of Documents.
#Linux list directory contents and permissions full#
It requires either the full path or the name of the directory, depending on the current working directory that you’re in. To navigate through the Linux files and directories, use the cd command. An example of an absolute path is /home/username. The command will return an absolute (full) path, which is basically a path of all the directories that starts with a forward slash (/). Use the pwd command to find out the path of the current working directory (folder) you’re in. Here is a list of basic Linux commands: 1. If you are still unsure about the command-line interface, check out this CLI tutorial.Īlthough the steps may differ depending on the distribution that you’re using, you can usually find the command line in the Utilities section. 30-day money back guarantee - no questions asked! Get Yours Today Linux Basic Commandsīefore we go on to the list of commands, you need to open the command line first. Take full control with Hostinger VPS plans. In this article, you’ll learn 34 basic Linux commands that will undoubtedly help you navigate through Linux as a newbie. So if you’re considering using Linux, learning basic command lines will go a long way. Tasks that require a multi-step process through GUI can be done in a matter of seconds by typing commands into the CLI. That being said, it’s recommended to use a command-line interface (CLI) because it’s more powerful and effective. It is common practice to use them when managing a VPS.

Most Linux distributions use a graphic user interface (GUI) as their shell, mainly to provide ease of use for their users. When operating a Linux OS, you need to use a shell - an interface that gives you access to the operating system’s services. People can freely modify and redistribute it under their own name. Since Linux was first released in 1991, it has continued to gain popularity due to its open-source nature. More accurately, they’re called distributions or distros. This includes all of the most popular Linux based systems like Ubuntu, Fedora, Mint, Debian, and others.


Linux is an entire family of open-source Unix operating systems, that are based on the Linux Kernel. When hearing about Linux, most people think of a complicated operating system that is only used by programmers.
