What is cd ~/blah/blah1/blah2?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers What is cd ~/blah/blah1/blah2?
# 1  
Old 03-03-2011
What is cd ~/blah/blah1/blah2?

What is cd ~/blah/blah1/blah2?

I mean "~"?

Thanks.
# 2  
Old 03-03-2011
tilde expansion in shell:

Code:
~ Expand to the variable $HOME or home directory of the current user

~USER Expand to the home directory of the given username

(hehe - amusingly even listed in wikipedia entry (Tilde - Wikipedia, the free encyclopedia) )
 
Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. Programming

how to simulate "mkdir -p /home/blah1/blah2/blah3" in "c" where only /home exist

I'm trying to make use of mkdir(char *pathname, S_IRWXU) to create the directories. but it only creates one directory at a time. so I have to separate the tokens for "/home/blah1/blah2/blah3" as "home blah1 blah2 blah3" using delimiter "/", but it is again hectic to create such directory... (8 Replies)
Discussion started by: platinumedge
8 Replies
Login or Register to Ask a Question