Server Candy; Never type ls -al again
Moderators: BBear, theunknownhost, flaguy
- Arf
- Official Test Penquin
- Posts: 9103
- Joined: Tue Apr 09, 2002 12:00 am
- Location: IDAHO, USA
- Contact:
Server Candy; Never type ls -al again
Okay, raise your hand, how many of you really like the to see all the information that # ls -al provides (in my case I like to use "ls -al -B --color=tty'") . I do. I hate trying to figure out the columns of file names that just "ls" provides. So why not make a command that allows you to have this without having to think about what extra items to add to the command line.
Here is where "Aliases" come in handy. These allow you to assign shortcuts to hard to remember commands. I use "dir" (reconning back to my old DOS days).
To create an aliase, you edit your /home/$user/.bashrc file and then relogin. Try simply adding the line below to yours and you'll see how easy this is.
alias dir='/bin/ls -al -B --color=tty'
Now when you relogin and type "dir", you'll see that your programs are bold faces as well as all the other information on each file is provided.
(This will work on most all Linux servers, not just Alabanza)
Here is where "Aliases" come in handy. These allow you to assign shortcuts to hard to remember commands. I use "dir" (reconning back to my old DOS days).
To create an aliase, you edit your /home/$user/.bashrc file and then relogin. Try simply adding the line below to yours and you'll see how easy this is.
alias dir='/bin/ls -al -B --color=tty'
Now when you relogin and type "dir", you'll see that your programs are bold faces as well as all the other information on each file is provided.
(This will work on most all Linux servers, not just Alabanza)
-
- Nothing better to do.
- Posts: 243
- Joined: Mon Apr 14, 2003 6:18 pm
- Location: Naples, FL
- Contact:
-
- Nothing better to do.
- Posts: 243
- Joined: Mon Apr 14, 2003 6:18 pm
- Location: Naples, FL
- Contact:
And it doesn't matter, I suppose, cause the Linux dir is a directory listing as well.
I learned the alias command a few years ago from Matt Wright who uses Pine to check his e-mail on the server. He would alias pine to pine -i which would take him right to the inbox. Later, I saw he had a bunch of these shortcuts created. Pretty useful when you do as much typing as he does.
I learned the alias command a few years ago from Matt Wright who uses Pine to check his e-mail on the server. He would alias pine to pine -i which would take him right to the inbox. Later, I saw he had a bunch of these shortcuts created. Pretty useful when you do as much typing as he does.
Kind regards,
Dave Jackson
World Wide Mart, Inc.
Dave Jackson
World Wide Mart, Inc.
speaking of pine (sorry to get off topic), but does anyone know how to configure pine to use another account as the sending email address instead of the account you are currently logged in with?
Meaning if I'm logged in as user1, and I invoke pine, how can I send an email so it sends out as support @ hostspring.com instead of user1 @ hostspring.com???
seems like an obvious option to configure...but I can't find it
thanks
Meaning if I'm logged in as user1, and I invoke pine, how can I send an email so it sends out as support @ hostspring.com instead of user1 @ hostspring.com???
seems like an obvious option to configure...but I can't find it

thanks
Last edited by crashdump on Wed Oct 06, 2004 9:55 pm, edited 1 time in total.
-
- Nothing better to do.
- Posts: 243
- Joined: Mon Apr 14, 2003 6:18 pm
- Location: Naples, FL
- Contact:
It's under Setup | Configure. The setting is User-Domain.
OPTION: User-Domain
This value specifies the domain part (right-hand side) of your return address on outgoing email and is also used as
the default domain for email composed to a local user. If unset, Unix Pine will obtain the domain from the system.
Often this value will be set for your whole site by the system administrator.
If you set this, see also the "quell-user-lookup-in-passwd-file" feature.
Hope this helps.
OPTION: User-Domain
This value specifies the domain part (right-hand side) of your return address on outgoing email and is also used as
the default domain for email composed to a local user. If unset, Unix Pine will obtain the domain from the system.
Often this value will be set for your whole site by the system administrator.
If you set this, see also the "quell-user-lookup-in-passwd-file" feature.
Hope this helps.
Kind regards,
Dave Jackson
World Wide Mart, Inc.
Dave Jackson
World Wide Mart, Inc.
Dave,
I do have that configured...but how do I alter the left-hand side of the email address to be different then the Unix username using pine??
thanks
I do have that configured...but how do I alter the left-hand side of the email address to be different then the Unix username using pine??
thanks
Last edited by crashdump on Wed Oct 06, 2004 9:54 pm, edited 1 time in total.
-
- Nothing better to do.
- Posts: 243
- Joined: Mon Apr 14, 2003 6:18 pm
- Location: Naples, FL
- Contact:
Change "personal-name" on the same screen (first setting).
OPTION: Personal-Name
This value is used to determine the full name part of the "From" address on messages you send. If unset, Unix Pine
will obtain your full name from the system password file. PC-Pine, on the other hand, requires that this be set.
OPTION: Personal-Name
This value is used to determine the full name part of the "From" address on messages you send. If unset, Unix Pine
will obtain your full name from the system password file. PC-Pine, on the other hand, requires that this be set.
Kind regards,
Dave Jackson
World Wide Mart, Inc.
Dave Jackson
World Wide Mart, Inc.
Dave,
changing 'personal name' isn't the option i'm looking for. given the following email address, how can I change 'user1' to 'user2' if I'm logged in with user1 while using pine:
user1@domain.com
thanks for your help
changing 'personal name' isn't the option i'm looking for. given the following email address, how can I change 'user1' to 'user2' if I'm logged in with user1 while using pine:
user1@domain.com
thanks for your help
Last edited by crashdump on Wed Oct 06, 2004 9:54 pm, edited 1 time in total.
-
- Nothing better to do.
- Posts: 243
- Joined: Mon Apr 14, 2003 6:18 pm
- Location: Naples, FL
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest