# ls
list: list.
It shows the contents of the folder we indicate later. For example. If we want to show
us what's in / etc:
# Ls / etc
If we do not
interpret anything what we want to see is the contents of the folder where we
are today:
# Ls
To display all files and folders, including hidden:
# Ls-a
To display the files and folders along with the
rights you have, what occupies, etc:
# Ls-l
If we wanted to
display the files in the same way as before, but also showing the hidden:
# Ls-la
--------------------------------------------------
---------------
CD
change directory: change directory. We can use it with
absolute or relative paths. On the whole we
indicate absolute path from the root (/). For example,
wherever we are, if we write in console ...
# Cd / etc / apt ... we take that folder directly.
# Cd / ... send us to the root of the filesystem.
Relative paths are
relative to something, and that something is the folder where we are now. For example if we are on / home and want to go to a temporary folder
called within our personal folder.
# Cd
tu_carpeta / temporal
We avoided the /
home early because otherwise we introduce draws on the directory where you are.
# Cd
What this does is it
takes you directly to your personal folder and wherever we are, is really very
practical, very simple and that not everyone knows.
--------------------------------------------------
--------------
mkdir
make directory: make directory. Create a folder with
the name that you indicate. We may use absolute
and relative paths. We can tell you the
whole path that precedes the directory we want to create, or if we are in the
folder that will contain just enough to put the name:
# Mkdir / home / your_account / cucumber
If we are in / home / your_account ...
# Mkdir cucumber
0 comments:
Post a Comment