![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ksh: difference between $* and $@ | JamesByars | Shell Programming and Scripting | 1 | 12-30-2007 10:08 AM |
| Difference between $* and $@ | saneeshjose | Shell Programming and Scripting | 1 | 01-19-2006 08:03 AM |
| Difference between C and C++ | hytechpro | High Level Programming | 2 | 11-29-2005 09:48 PM |
| difference | rajashekaran | UNIX for Advanced & Expert Users | 1 | 04-23-2002 01:59 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
/ is a separator between components of a pathname. Consider /usr/bin/ksh. The leading slash tells you that this is a absolute pathname so you start at root and look for "usr". Then you look in "usr" for "bin". The path known as / is a little special. The leading slash says it's an absolute path so we start at root. And then we're done. With a path like /usr/bin//ksh you have superfluous separators. A path like that is not guaranteed to work so you shouldn't do it. But superfluous separators are easy to ignore and this is commonly done. The path // is a special case of a path with superfluous separators.
Code:
$ cd // $ cd /// $ cd ////// $ cd ///////// $ /usr/bin/pwd / $ |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|