PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

CLI: Aliases


Your Ad Here

Your Ad Here

CLI = Command Line Interface

Aliases are short strings that can be used in lieu of longer commands and short scripts that you use often:

alias ls='ls -shF'

An alias takes precedence over an executable's file name, as in "ls" above.

$bin-ls

To find the full path of any executable, do:

$ type -a ls # for example

The first thing to do when looking for a good alias is to check and see whether that string has been taken for a script, binary executable, function, etc.:

micro solution backpack cdwriter hell
i've got an external backpack cd-writer. it connects via usb and parallel port. i'm having a hell of a time getting it to work with ubuntu hoary (debian-based), using either...

$ type g type: g: not found

micro solution backpack cdwriter hell 3898
On Mon, 13 Jun 2005 03:50:03 GMT, johnny bobby bee staggered into the Black Sun and said: You didn't mention what (if anything) you've tried wrt USB. USB is usually...

$ type mc mc isusr-bin-mc

Create an alias file (making sure there is no other file with that path-name using ls). "~-.bash-aliases" would be a good name. List your aliases there, one per line.

If you want to put anything else in your alias file besides blank lines, be sure to comment them out:

# ~-.bash-aliases - sourced in ~-.bashrc

Then put this line in your ~-.bashrc:

source ~-.bash-aliases

and have bash re-read its rcfile:

source ~-.bashrc

You should do this whenever you edit your alias file.

A handy alias is:

alias S='source ~-.bashrc'

AC

-- alanconnor AT earthlink DOT net Use your real return address or I'll never know you ~



Your Ad Here

List | Previous | Next

micro solution backpack cdwriter hell

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

Linux + Thunderbird + Korean input