Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
cd [2015/08/05 10:29]
steve
cd [2015/08/05 10:30]
steve
Line 3: Line 3:
 === Tips and Tricks === === Tips and Tricks ===
  
-If you don't know what the parent folder'​s name is, but you do know the child folder'​s name is, you can use ''​cd */foo/** to get there.+If you don't know what the parent folder'​s name is, but you do know the child folder'​s name is, you can use ''​cd */foo'' ​to get there.
  
 Examples: I'm in a ports system (OpenBSD, Gentoo, etc), and I know I'm looking for package name mplayer, but I don't know what category it's in: Examples: I'm in a ports system (OpenBSD, Gentoo, etc), and I know I'm looking for package name mplayer, but I don't know what category it's in:
Line 12: Line 12:
  
 If two of the same child directories exist in more than one of the parent folders, then ''​cd''​ will go into the first one it finds. If two of the same child directories exist in more than one of the parent folders, then ''​cd''​ will go into the first one it finds.
 +
 +It supports globbing as well:
 +
 +<​code>​
 +cd */*mplayer*
 +</​code>​