The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Alias problem cleansing_flame UNIX for Dummies Questions & Answers 1 02-18-2008 03:44 AM
alias problem Mattiax UNIX for Dummies Questions & Answers 5 10-17-2006 10:56 AM
Invisible login SmileKilled UNIX for Advanced & Expert Users 1 08-10-2006 05:07 PM
Identifying invisible characters in Unix file thanuman UNIX for Dummies Questions & Answers 1 04-29-2005 10:17 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-03-2008
cleansing_flame's Avatar
cleansing_flame cleansing_flame is offline
Registered User
  
 

Join Date: Nov 2007
Location: NYC
Posts: 37
Problem with alias and invisible text

okay how do i make an alias that has a space in it?

for most of my other ones i've simply done within my ~/.bash_profile

alias `ls`='ls -laF'

but with

alias `sudo su`='sh hello.sh'
I'm unable to make it work

in addition i was wondering how i could allow the user to type in invisible text

any help appreciated
  #2 (permalink)  
Old 03-05-2008
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
Quote:
okay how do i make an alias that has a space in it?
You don't - the whole point of making aliases is to have a shorthand term for a command or series of commands. The other problem with "sudo su" is that you are trying to set up an alias to override an actual command, sudo. If sudo is installed, then you will be making it so that command doesn't work (unless you give the path to it (example: /usr/local/bin/sudo ).
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:13 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0