10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this:
rsync /path/on/local/machine/ foo.com:path/on/remote/machine/
ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
3. UNIX for Dummies Questions & Answers
Hi! I'm very new to unix, so please keep that in mind with the level of language used if you choose to help :D Thanks!
When attempting to use sudo on and AIX machine with oslevel 126.96.36.199, I get the following error:
exec(): 0509-036 Cannot load program sudo because of the following errors:... (1 Reply)
Discussion started by: Chloe123
4. UNIX for Dummies Questions & Answers
Please could someone advise me the command - to set up aliases commands within a .profile using shell sh
venhart (13 Replies)
Discussion started by: venhart
5. UNIX for Advanced & Expert Users
How can I embed alias command inside the unix script?
...The above script is not working.
If I type aa hostname in the command prompt 'TELNET' terminal is not opening.
Regards,... (2 Replies)
Discussion started by: sharif
6. UNIX for Dummies Questions & Answers
'exec /bin/sh' breaks alias
I have an application that requires su to root in order to run some commands. Unfortunately, my corporate policy only allows sudo so I created an alias in .profile as "alias su="su... (0 Replies)
Discussion started by: stulincoln
7. UNIX for Advanced & Expert Users
'm executing a java program from my shell script on solaris 9 as
$JAVA_HOME\bin\java -ms32m -mx128m -classpath $CLASSPATH com.abc.fwk,abcServer.abcfwkServer $1 &
where $1 is port number
when i do ps -ef, it shows whole command , i want to give this some alias name as abcProcess, so... (2 Replies)
Discussion started by: b_garima
8. UNIX for Advanced & Expert Users
I'm using personal user to enter telnet session then manually connecting to a generic user using the following :
sudo -H -u $1 ksh -c ". ~$1/.profile && cd ~$1 && ksh" ;
where $1 is the generic user.
It works but in the ".profile" execution , the alias are not working
when the generic... (7 Replies)
Discussion started by: Nicol
9. UNIX for Advanced & Expert Users
i want to make alias for rm command. It should actually move the file to a directory in my home.
Say if i type
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
10. UNIX for Dummies Questions & Answers
I want to create a command alias. I know what shell I'm
using, I just don't know which file to inter the command alias.
When I type "echo $SHELL" the output is as follows:
If I'm correct, this is the bourne shell. Does anyone know which file to edit in this particular shell? Thanks. (2 Replies)
Discussion started by: cstovall