Tips Linux Explorers | ![]() |
All Things Linux Forum | ![]() |
Great Linux Links | ![]() |
LinuxClues.com | ![]() |
Hometown | ![]() |
CODE |
$ mkdir One ( without the $ ) ( makes a dir One in your home dir ) $ mkdir one ( Linux is case sensitive so "One" and "one" are not the same ! ) $ cp tessst One ( copies the file tessst, that we made in previous Tip, to dir One ) $ mv ssset one ( moves the file ssset, that we made in previous Tip, to dir one ) $ mv one One ( moves dir one in dir One ) $ cd One ( see how the promt puts the current dir in in the prompt ) ( puts you in dir One ) $ ls ( shows you what is inside One ) $ cat tessst ( shows contents file tessst ) $ rm tessst ( removes file tessst from One dir ) $ cd .. ( puts you back in your home dir ) $ rm tessst ( removes tessst from home dir ) $ rm -rf One ( now all files and directories we played with are removed ) |
CODE |
$ cd / $ ls |
CODE |
$ cd /mnt $ ls |
CODE |
$ cd ( Brings you back to your /home ) $ ls ( What is in your home ) $ ls -a ( What really is in home !! The argument “-a” shows the hidden files. Hidden files start with “.” ) $ touch .tessst ( Makes an empty hidden file called .tessst in /home ) $ ls ( You don't see .tessst ) $ ls -a ( You do see .tessst ) $ rm .tessst ( Removes the hidden file .tessst ) $ ls -al ( Shows you all the files in /home with their “permissions” more about that later. ) |
Tips Linux Explorers | ![]() |
All Things Linux Forum | ![]() |
Great Linux Links | ![]() |
LinuxClues.com | ![]() |
Hometown | ![]() |