could a change the ls command for a user only


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers could a change the ls command for a user only
# 1  
Old 04-08-2011
could a change the ls command for a user only

Hi

When I do the ls command I do ls -al so could I put someting in the .profile or somewhere else to juste write ls and the command will do ls -al ???

juste for 1 user ???

thanks

Sylvain
# 2  
Old 04-08-2011
Probably. what is your system? What is your shell? For some systems and shells (but by no means all) you can put alias ll="ls -al" in your .profile so ll will run ls -al. I wouldn't alias ls itself, what if you need it?
# 3  
Old 04-08-2011
why we connot alias ls itself..... it's work

and yes is what i need for information

thanks a lot
# 4  
Old 04-08-2011
Quote:
Originally Posted by slevesque
why we connot alias ls itself..... it's work
It becomes a hassle to run ls without -la. You have to do /bin/ls to get around your alias.
# 5  
Old 04-08-2011
ok but it's just for one user not all user
# 6  
Old 04-08-2011
Quote:
Originally Posted by Corona688
It becomes a hassle to run ls without -la. You have to do /bin/ls to get around your alias.
One can escape the command to get around the alias.
Code:
\ls

And it's only one extra keystroke.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Command to change add permissions for a new user to all files in all subfolders and folders

Hi there! I'm new to Unix and haven't done command line stuff since MS-Dos and Turbo Pascal (hah!), I would love some help figuring out this basic command (what I assume is basic). I'd like to add a User to the permissions of all files in a folder and all files in all subfolders, as well... (9 Replies)
Discussion started by: Janjbrt
9 Replies

2. AIX

How to change normal user id to LDAP user id?

If I create a new user id test: mkuser id=400 test then I want it to LDAP user: chuser -R LDAP SYSTEM=LDAP registry=LDAP test It shows: 3004-687 User "test" does not exist. How to do? (4 Replies)
Discussion started by: rainbow_bean
4 Replies

3. Solaris

how to change /export/home/user dir to /home /user in solaris

Hi all i am using solaris 10, i am creating user with useradd -d/home/user -m -s /bin/sh user user is created with in the following path /export/home/user (auto mount) i need the user to be created like this (/home as default home directory ) useradd -d /home/user -m -s /bin/sh... (2 Replies)
Discussion started by: kalyankalyan
2 Replies

4. UNIX for Dummies Questions & Answers

change user> to user@host> ssh prompt

Hi, I was wondering how to change the prompt for my ssh login. At the moment it is like user> while I'd like it to be as user@host> It is in the .bash_profile or .ssh ??? Thanks (2 Replies)
Discussion started by: pmasterkim
2 Replies

5. Shell Programming and Scripting

How do i change to super user then revert back to ordinary user ,using shell script?

Hi all, I am trying to eject the cdrom from a livecd after certain stage... Now assuming that it is possible to eject,please consider my issue!!! The OS boots into a regular user by default...so i am unable to use the eject command to push out the drive... However if i try pfexec eject it... (3 Replies)
Discussion started by: wrapster
3 Replies

6. Forum Support Area for Unregistered Users & Account Problems

Change of user name

I am on several other Forums under the handle of FloridaBD and therefore would like to request that my user name here on Unix forums be changed from SunBurntYux to FloridaBSD Thanks. (1 Reply)
Discussion started by: SunBurntYux
1 Replies

7. UNIX for Advanced & Expert Users

Help can't change user by su - command!

I can login user by telnet, but I can't change user by su command with same passwd. I have no idea about that, please do me a favour and tell me the config which may be wrong. Thanks in advance! (6 Replies)
Discussion started by: GCTEII
6 Replies

8. Post Here to Contact Site Administrators and Moderators

User name change?

Hello, I love the service. My username is Jmt. Can I change that to WebKruncher? Thanks, -Jmt WebKruncher.com - sole proprietor. (1 Reply)
Discussion started by: Jmt
1 Replies
Login or Register to Ask a Question