D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Directories



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 15 Jan 2003 12:23 pm, martin.gautier@xxxxxxxxxxxxx wrote:
> > cd ..
> >
> > goes to the parent directory
>
> It's an interesting point that for those coming from a Win/DOS background,
> they can use:
>
> cd..
> (no spaces after cd)
>
> whereas the linux command requires a space.
>

Not necessarily, Mandrake for one creates an alias for cd.. to cd .. so you 
don't get the 'command not found' message. Check /etc/profile.d/alias.sh and 
add:
alias cd..="cd .."

Other Mdk aliases include:

alias ls="ls $LS_OPTIONS"

alias d="ls"
alias l="ls"                    # classical listing.
alias ll="ls -l -k"             # List detailled.
alias la='ls -a'        # List all.
alias lsd="ls -d */"            # List only the directory.
alias s="cd .."
alias p="cd -"

alias md="mkdir"
alias rd="rmdir"
alias cp="cp -i"
alias mv="mv -i"
alias rm="rm -i"


> It's something that's caught me a few times late at night & after a few
> beers and something my brother queried when he booted linux for the first
> time.
>
> ie. Not such a dumb question for a newbie... ;o)
>
> Mart

But one that doesn't affect all newbies and can be avoided with the right 
config.

- -- 

Neil Williams
=============
http://www.codehelp.co.uk
http://www.dclug.org.uk

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+JcDpiAEJSii8s+MRArwTAJ0TwIUVSkIn8n30DpE4qg9K93QBTQCgxrv6
Hvsu1cxQopvbxBxC2lOchnM=
=MYSM
-----END PGP SIGNATURE-----


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly