Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create a batch file in linux 7.2

Status
Not open for further replies.

ska4reak

Technical User
Oct 19, 2002
20
US
Is it possible to re-name some linux commands with my own commands using a batch file(which runs at login)
In other words: I want to create a batch file which will customize the environment in linux..

eg: change linux command "suspend" to "spd" or sth like that..

thanks
[pc2]
 
Sure, but 'autoexec.bat' in Linux works a little bit different ;-) Check 'man bash' and search for .bashrc and .bash_profile.
 
you can set aliases that will execute other commands and can even pass command line parameters.
alias lc="ls --color" (I think that is the correct syntax)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top