$ls
:- (In order to know which files and directories are contained in the path we are
in:)
$ cd {foldername} :- (To access a folder)
$ cd ..
:- (To go back to the previous folder)
$ cp {filename} {newfilename} :- (To copy a file)
$ mv {filename} {newfilename} :- (To move or rename a file)
$ mkdir {foldername}
:- (To create a) folder)
$ nano {filename}. :- (To use a text editor (we will use the CTRL+X key combination to close the
editor and Y/N to confirm a possible overwrite action):
$ ls --help
:- (And so on. Using the terminal, we will run programs also requiring some
parameters, specified by the - (minus) character: if we wish to know how the ls
command works and its allowed parameters, we must use --help:)
$ man ls
:- (Or, we can use the man tool)
$ apt-get install [packagename]
:-Furthermore, remember that we will use the apt commands to install new
programs on Debian:
$ yum install [packagename]
:- Although not officially supported by this document, it may be possible to
install the same package on Red Hat-based distros (Fedora, CentOS, etc.) using
the command:
$ pacman -S [packagename]
:- or also on Arch Linux-based systems, using the command:
$ sudo apt-get
:- You’ll always have to launch these and other commands as root
(administrator). In such cases, you should use the prefix:
$ su :- If the latter is not present, you’ll have to login as root first, using the
command: