Skip to main content
3 of 3
format code/grammar
andcoz
  • 17.5k
  • 4
  • 40
  • 46

You can use export to assign your directory paths to variables and then reference them.

export dir1=/Project/Warnest/docs/
export dir2= ~/Dropbox/Projects/ds/test/
cd $dir1
cd $dir2
Fahad Naeem
  • 193
  • 1
  • 1
  • 6