On Saturday 21 January 2006 18:02, Carlos E. R. wrote:
Better use "su -" instead.
The - in `su -` makes sure you get a *complete* environment. Always good practice.
Password: linux:/home/joegum # pico linux:/home/joegum # pico /etc/modules linux:/home/joegum # mkdir mnt/zip100
Initial "/" missing...
When your path begins with a "/", the shell interprets that as being an absolute path, that is stating at "/". When you omit the initial "/", the shell interprets that as "start in the current working directory". So `mkdir /media/zip` will create the folder /media/zip, regardless of where your shell is in the filesystem. `mkdir media/zip` will create the folder /home/joegum/media/zip if you issue the command from the /home/joegum folder.
mkdir: cannot create directory `mnt/zip100': No such file or directory linux:/home/joegum # mkdir /mnt/zip 100.0
Extra space... ----------------------^
Try not to create filenames or folder names with spaces in them; you will find life much easier. I like dots ".". Underscores and dashes work too. If you have spaces, then quoting the path will work: `cd "/home/mark/folder with space/picture.png"` There is a bit of a curve to get over here, but stick with it. Soon enough it will seem old hat to you. Once you get the basics down, there are some nice features to make it easier. Mark