a question about alias command


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers a question about alias command
# 1  
Old 12-11-2006
a question about alias command

Some Unix systems won't enable you to do the following. What danger do you see lurking in this alias?

(a) alias who (b)who -a


Do you know it? Thanks!
# 2  
Old 12-11-2006
Some UNIX forums don't allow you to post homework questions.

This is one of them. Please read the rules.

Thanks,
ZB
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Alias command help

Hello, I'm attempting to configure shell settings in my new Macbook. The standard unix command line 'alias' doesn't seem to be working: bash-3.2$ alias dir ls -la bash: alias: dir: not found bash: alias: ls: not found bash: alias: -la: not found bash-3.2$ alias dir 'ls -la' bash:... (1 Reply)
Discussion started by: palex
1 Replies

2. Solaris

Simple question: alias not working for root

OS = Solaris 8 Issue: alias not working for root, but working for regular users # grep root /etc/passwd root:x:0:1:Super-User:/:/sbin/sh # alias dir=ls # dir dir: not found # alias dir="ls -l" # dir dir: not found # alias dir='ls -l' # dir dir: not found # alias... (2 Replies)
Discussion started by: aixlover
2 Replies

3. UNIX for Advanced & Expert Users

SSH and alias question...

i regularly login to servers that I donot control. On many of these servers I do not have home dir. I need to set aliases from my host to the remote machine when I ssh in. for example from when I go from hosta --> hostb. I want all my aliases from hosta to be present in hostb once I login. ( i... (5 Replies)
Discussion started by: vijayrajah
5 Replies

4. UNIX for Dummies Questions & Answers

alias question

how would i turn alias off all together? (1 Reply)
Discussion started by: JamieMurry
1 Replies

5. Shell Programming and Scripting

question about alias

I am using following alias in csh to find process. alias pp 'ps -ef | grep \!*' >pp java root 27742 27558 0 15:55 pts/12 00:00:00 grep java but It does not work in bash. alias pp='ps -ef | grep \!*' #pp java grep: java: no such file or directory How can I use this feature... (1 Reply)
Discussion started by: hcliff
1 Replies

6. UNIX for Advanced & Expert Users

One Question related to alias

Hello, I have created following alias in csh lab 'rlogin -l user23 complab23' but problem is complab23 does not allow automatic login by checking .rhosts file. So after typing lab on command line I have to type complicate password and if wrong password is typed thrice then account gets... (4 Replies)
Discussion started by: neerajrathi2
4 Replies

7. UNIX for Dummies Questions & Answers

I/O and alias question

Sorry if this should be in the shell scripting area, it seemed too foolish to be answered there -------------------------------- In my .bash_profile i added: alias "sudo su"='bash hard link with bash script at end' It didn't work was a result, what is the quotation problem? ------ ... (2 Replies)
Discussion started by: cleansing_flame
2 Replies

8. Shell Programming and Scripting

unix question: user supplied input for 'alias'

I have a program to scan the log files and I want to pipe the output to 'less'. I want to create an alias such that following are equivalent scanlog chunky.lst = /udd/n2man/utils/scanlog chunky.lst|less where chunky is user supplied file which can change. Is this possible as an alias or... (1 Reply)
Discussion started by: ospreyeagle
1 Replies

9. UNIX for Advanced & Expert Users

alias for rm command

Hi, i want to make alias for rm command. It should actually move the file to a directory in my home. Say if i type %rm abc.txt the command should expand to %mv abc.txt ~ashishp/trash How should I write the alias for this? -Ashish (8 Replies)
Discussion started by: shriashishpatil
8 Replies

10. Shell Programming and Scripting

Alias's & Functions - simple question

Having a memory lapse: If I redefine a command using an alias or a function - How do I access the "real" command without specifying an absoulte path: i.e. function man { /usr/bin/man |more } alias ls='/usr/bin/ls -l' How do I specify the ls or man command above without the... (6 Replies)
Discussion started by: kornshellmaven
6 Replies
Login or Register to Ask a Question