hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Hosting Security and Technology Tutorials : Howto: Use Alias
Reply

Hosting Security and Technology Tutorials Tutorials related to server security or the like.
Forum Jump

Howto: Use Alias

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-30-2005, 07:00 PM
Blueheaven Blueheaven is offline
Web Hosting Evangelist
 
Join Date: Apr 2004
Posts: 476

Howto: Use Alias


Say for example that you're doing some tuning or modifying on the server and your using some comon commands, then to make things easy for yourself you could set up temporary aliases -(keyboard shortcuts) that you can use to speed up your work in ssh, insteading of having to type everything out again and again.

First open up a session in ssh
Now here are some common aliases that you could use

# to open up and edit your httpd.conf file
alias th='nano /etc/httpd/conf/httpd.conf'

#testing your apache configuration
alias te='service httpd configtest'

#to start
alias st='service httpd restart'

to remove an alias , type unalias th
where th is the alias you have set

All aliases are temp commands that get removed when you have logged out.

Reply With Quote


Sponsored Links
  #2  
Old 03-31-2005, 06:39 AM
Haze Haze is offline
Web Hosting Master
 
Join Date: Apr 2001
Posts: 2,588
You can also set aliases perminently in a users .bashrc ( or similar 4 other shells ) the same way, even set it global on the server.

A few of the ones I use include:

alias tarbz2="tar jcvf"
alias untarbz2="tar jxvf"
alias nano="nano -w"

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Google Drive Adds File Hosting, Improves Third-Party App Integration Web Hosting News 2013-02-08 12:46:31
GSA Shutters Government Cloud Services Store Apps.gov Web Hosting News 2012-12-07 15:04:35
Pancake.io, DropPages Let Users Host Web Site Files on DropBox Blog 2011-12-08 17:03:11
Web Host Gazzin.com Upgrades Reseller and VPS Plans Web Hosting News 2011-07-29 18:48:35


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?