Sponsored Content
Full Discussion: Unix Commands?
Top Forums UNIX for Dummies Questions & Answers Unix Commands? Post 44984 by cbkihong on Friday 12th of December 2003 10:15:53 PM
Old 12-12-2003
IMO it is not a good taste to make such kind of aliases (dir -> ls -l etc.)

If you change to another Unix system without these aliases and you are used to rely on these aliases you will then have difficulties.

The point of creating aliases is to reduce amount of typing for frequently-used commands, not to make different OSes look similar because different OSes have different characteristics and making an alias is not sufficient to mask the differences in terms of commands.

It's easy to visualize. DOS commands use a / for arguments while - for Unix, and the arguments for "dir" are also different from that of "ls" on Unix.

SuSE linux comes with these kind of aliases and they turned up to have created more confusion than good. It's tempting to use them, but you will never properly learn Unix if you are to blindly adhere to them.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix Commands

Where can I get a list of basic commands ? I want to get up to speed as soon as possible ? thanks..... (4 Replies)
Discussion started by: drukkie
4 Replies

2. UNIX for Dummies Questions & Answers

Maingrame to UNIX sending UNIX commands

I want to know if there is a way to send unix commands thru FTP from a mainframe to kick off Autosys Jobs. I just need to send a command from the mainframe to UNIX and have UNIX execute that command. (2 Replies)
Discussion started by: skammer
2 Replies

3. HP-UX

Unix Commands

HP 9000/800 Server running HP-UX UNIX Server, users are connected via LAN and dialup connection. Need help to write SHELL SCRIPT or UNIX Commands which would perform the following: -ping IP address of all login/connected users to our server -send customized text message to all the login... (1 Reply)
Discussion started by: Moinul Haque
1 Replies

4. UNIX Desktop Questions & Answers

Unix commands

What is the unix command that will display the current UTC time, hours, and minutes only. What is the unix command for sorting in descending order. What is the unix command for display the first 10 characters in a file. (4 Replies)
Discussion started by: charlton
4 Replies

5. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

6. UNIX for Advanced & Expert Users

Unix Commands

hi experts, Where will I be able to find the whole man of unix commands in Web(the official documentation)? How many commands are there in total in Unix? (3 Replies)
Discussion started by: Sreejith_VK
3 Replies

7. UNIX for Dummies Questions & Answers

unix commands...

i want to know how to do a few things using unix commands. firstly say I have a .txt file that contains random lines like Hello Goodbye I'm tired 5 74 using the grep command how can I get a list of lines that contain ONLY digits? also using pipes to combine ls and grep commands how... (5 Replies)
Discussion started by: ez45
5 Replies

8. UNIX for Dummies Questions & Answers

ALL unix commands

Hello Folks Where can I find all the unix commands with explanations , on the internet. I am searching but most of the sites are listing a few of the important ones. PLease guide through thanks (4 Replies)
Discussion started by: supercops
4 Replies

9. UNIX for Dummies Questions & Answers

$ commands in unix

What are the various commands which use $ in unix and what do each of these indicate? eg: echo $? returns the success status of the previous commands..similarly $$ returns some numeric value..wat exactly are these? From where can a download a document which can help me getting more details about... (2 Replies)
Discussion started by: DDS
2 Replies

10. UNIX for Dummies Questions & Answers

Unix Commands help

Having trouble doing the following things, I know it has something to do with using metacharacters but I'm not able to get it working correctly. I need a command to get a long directory listing of all the files that have: exactly two characters following the letters zot. all files that... (1 Reply)
Discussion started by: lakers34kb
1 Replies
newaliases(1M)						  System Administration Commands					    newaliases(1M)

NAME
newaliases - rebuild the data base for the mail aliases file SYNOPSIS
newaliases DESCRIPTION
newaliases rebuilds the random access data base for the mail aliases file /etc/mail/aliases. newaliases accepts all the flags that sendmail(1M) accepts. However, most of these flags have no effect, except for the -C option and three of the Processing Options that can be set from a configuration file with the -o option: -C /path/to/alt/config/file Use alternate configuration file. -oAfile Specify possible alias files. -oLn Set the default log level to n. Defaults to 9. -on Validate the RHS of aliases when rebuilding the aliases(4) database. newaliases runs in verbose mode (-v option) automatically. EXAMPLES
Example 1 Running the newaliases Command The following command runs newaliases on an alias file different from the /etc/mail/aliases default in sendmail(1M): example% newaliases -oA/path/to/alternate/alias/file EXIT STATUS
newaliases returns an exit status describing what it did. The codes are defined in /usr/include/sysexits.h. EX_OK Successful completion on all addresses. EX_NOUSER User name not recognized. EX_UNAVAILABLE Catchall. Necessary resources were not available. EX_SYNTAX Syntax error in address. EX_SOFTWARE Internal software error, including bad arguments. EX_OSERR Temporary operating system error, such as "cannot fork". EX_NOHOST Host name not recognized. EX_TEMPFAIL Message could not be sent immediately, but was queued. FILES
/etc/aliases Symbolic link to /etc/mail/aliases /etc/mail/aliases.pag /etc/mail/aliases.dir ndbm files maintained by newaliases /etc/mail/aliases.db Berkeley DataBase file maintained by newaliases ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsndmu | +-----------------------------+-----------------------------+ SEE ALSO
sendmail(1M), aliases(4), attributes(5) SunOS 5.11 14 Sep 2001 newaliases(1M)
All times are GMT -4. The time now is 01:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy