3) Return to the previous directory cd - 6. There are some tricks with the cd command that can save you a lot of time when playing around with it: 1) Go to the home folder cd 2) Move a level up cd. You can also supply the absolute path of the folder: cd /home/kinsta/Documents/Videos It refers to “ change directory” and, as its name suggests, switches you to the directory you’re trying to access.įor instance, if you’re inside your Documents directory and you’re trying to access one of its subfolders called Videos, you can enter it by typing: cd Videos The cd command is highly popular, along with ls. # My result: /home/kinsta/Documents/linux-commands 5. To use it, simply type pwd in the terminal: pwd For example, if your username is “john” and you’re in your Documents directory, its absolute path would be: /home/john/Documents. The pwd command stands for “print working directory,” and it outputs the absolute path of the directory you’re in. To remove the previous ls alias, you can use: unalias ls 4. alias The alias command.Īs the name suggests, the unalias command aims to remove an alias from the already defined aliases. If you want to list all the aliases you have in your shell session, you can run the alias command without argument. Note that the value must be inside quotes. When creating an alias, you instruct your shell to replace a word with a series of commands.įor example, to set ls to have color without typing the -color flag every time, you would use: alias ls="ls -color=auto"Īs you can see, the alias command takes one key-value pair parameter: alias NAME="VALUE". The alias command lets you define temporary aliases in your shell session. Now the ls command output is colorized, and you can appreciate the difference between a directory and a file.īut typing ls with the color flag would be inefficient that’s why we use the alias command. This flag returns all the flags you can use with ls.įor example, to colorize the output of the ls command, you can use the following: ls -color=auto The colorized ls command. It has many options, so it might be good to get some help by using the -help flag. It allows you to list the contents of the directory you want (the current directory by default), including files and other nested directories. Ls is probably the first command every Linux user typed in their terminal. Many of these have multiple options you can string to them, so make sure to check out the commands’ manual. Now let’s dive into the 40 most-used Linux commands. If this isn’t working, search in your application panel for “terminal.” The Linux terminal emulator. In most Linux distributions, you would use Ctrl + Alt + T to do so. The live system comes equipped with an XFCE desktop interface and a fully established software suite.Before jumping into the most-used Linux commands, make sure to fire up a terminal. With Anarchy Linux, you get access to a full live system, which allows you to try the distro before installing it on your system directly. You have an option to either write the distro’s ISO image to a USB/CD or install it directly on a virtual machine. Anarchy Linux intends to pave the way for desktop computing and further provide you a platform to install a customized Arch-based OS. Like some of the other distros on the list, Anarchy Linux is also an open-source distro, which draws its inspirations from Arch Linux. The purpose of this half-rolling model is to let users enjoy different versions of the KDE Plasma desktop, along with other applications. It relies heavily on KDE and Qt software, with an intent to encourage users to adopt KDE/Qt for some of the other widget toolkits.Ĭhakra is a community-developed OS that follows a half-rolling release model. Chakra is another user-friendly distribution, based on Arch Linux.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |