| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| en:guides:basicnewbie [2013/01/29 12:22] – [ls] oui | en:guides:basicnewbie [2013/03/01 18:58] (current) – edit and link to handbook linea |
|---|
| ====== Daily used Linux commands ====== | ====== Daily used Linux commands ====== |
| |
| After the start of our SliTaz base (see here) we did [[login]] and see now, following a Welcome message, a [[prompt]] folling a short indication: | After starting our SliTaz base (see [[newbie#training|here]]) we [[logged on]] and can see now, following a Welcome message, a short command line [[prompt]]: |
| |
| <file>tux@dolilive:~$ _</file> | <file>tux@dolilive:~$ _</file> |
| |
| We can immediately understand who is doing where: | Now we can immediately start to understand who is doing what: |
| |
| * **tux** is my [[login]] | * **tux**, is my [[login name]] |
| * **@** as I am "at", read the next... | * **@**, is where I am "at" |
| * **dolilive** somewhat //like do_Linux_live// | * **dolilive**, something //like do_Linux_live// |
| * **:** what we will do is awaiting at the [[prompt]] and it will be active here (in absence of some concrete object, that would redefine the destination): | * **:**, what we chose to do is awaiting us at the [[prompt]] and it will be actived here (in absence of some concrete object that would redefine the destination) |
| * **~** in my «home» (**~** is the symbol for the home of the user logged in!) | * **~**, is my «home» (**~** is the symbol for the home directory of the user logged in!) |
| |
| <note warning>warning: **~** depends from the rights you actually have:</note> | <note warning>warning: **~** depends on the administrative rights you actually have</note> |
| |
| If you are really //root//, all data beeing automatic registered will be registered in the special directory ///root//. The tree of main directory is also named //root of the file system//. His symbol is the first sign / that you see alone or in first place in all paths! It is not possible to unbind the //root of the file system// and the main directory //root// used by the administrator //root// for his administrative transactions! This directory ///root// is as far a special directory for ex. as it has to be in the same partition as the try of main directories as well as the content of its first level! | If you are //root//, any data will be automatically registered in the special directory ///root//. The tree of the main directory is also named the //root of the file system//. The symbol / is the first sign that you see alone or in the first place of all the other paths! It is not possible to unbind the //root of the file system// and the main directory //root// is used by the administrator //root// for all of their transactions! This directory ///root// is a special directory as for example as it has to be in the same partition as the tree of main directories as well as hold the contents of the first level! |
| |
| The //home// of users is logged in the main directory ///home//. The //home// of users is a subdirectory in //home//! The path see as follow: | The //home// of users is a subdirectory in the main directory ///home//! The path is as follows: |
| |
| <file>/home/tux</file> | <file>/home/tux</file> |
| |
| (//tux// can be defined differently at the installation if you don't like to be a Tux! In such a case the path would be: **/home/SomeWhatYouWillBe**). Both, the content of //home// as well as the content of //SomeWhatYouWillBe// can be logged in a separate partition. The automatic //installer// in the //SliTaz Panel// help you to do that if you wish it!) | tux can be defined differently at the installation if you don't want to be called tux! In such a case the path would be: **/home/SomeWhatYouWillBe**. Both the contents of home, as well as the contents of //SomeWhatYouWillBe// can also be contained in a separate partition. The automatic installer in the SliTaz Panel can help you to do that if you wish. |
| |
| We enter now at the prompt our first command: | We can enter now at the prompt our first command: |
| |
| ===== ls ===== | ===== ls ===== |
| __You don't need to exit it__ | |
| |
| **ls** is a command to list files, used alone in the actual directory. Adding parameter and/or path it can do that in each directory where you actually have rights and do really more as to showing the file names. | __You don't need to exit__ |
| |
| Test please: | **ls** is a command to list files located in the actual directory. Adding parameters and/or paths it can do that in each directory where you have the rights and can do more than just showing the file names. |
| * man ls | |
| | Please test: |
| * ls --help | * ls --help |
| |
| and test now please: | (more? see [[http://en.wikipedia.org/wiki/Ls|here]]) |
| | |
| | And test now please: |
| * ls /usr/bin | * ls /usr/bin |
| | |
| | ===== See Also ===== |
| | \\ |
| | [[en:handbook:start|The SliTaz Handbook]] |
| |
| |