Ok. This has got to be easy, but I can't get something right. I'm just trying to find a way to enter a few characters (example: cd1) and have it change my current directory. In other words, I'm at root and I want to type cd1 and have it be the same as if I typed "cd export/home/testuser". I'm using Solaris 8 for this. Thanks in advance for any help. I promise I'm trying to figure it out on my own...:)
budroedotcom 0 Newbie Poster
Recommended Answers
Jump to Posttry an alias:
alias home="cd /home/budroeducom" alias cd1="cd /some/longpath/to/somewhere"
typing
home
will execute
cd /home/budroeducom
To see what alias commands are already there:
alias
will list them for you.
All 4 Replies
John A 1,896 Vampirical Lurker Team Colleague
budroedotcom 0 Newbie Poster
jim mcnamara 19 Junior Poster
budroedotcom 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.