Skip to main content
format code/grammar
Source Link
andcoz
  • 17.5k
  • 4
  • 40
  • 46

You can use Exportexport 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

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

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

UseYou can use Export to assign your directory paths to variables and then referencingreference them.

export dir1=/Project/Warnest/docs/

export dir2= ~/Dropbox/Projects/ds/test/

cd $dir1

cd $dir2

export dir1=/Project/Warnest/docs/
export dir2= ~/Dropbox/Projects/ds/test/
cd $dir1
cd $dir2

Use Export to assign your directory paths to variables and then referencing them.

export dir1=/Project/Warnest/docs/

export dir2= ~/Dropbox/Projects/ds/test/

cd $dir1

cd $dir2

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
Source Link
Fahad Naeem
  • 193
  • 1
  • 1
  • 6

Use Export to assign your directory paths to variables and then referencing them.

export dir1=/Project/Warnest/docs/

export dir2= ~/Dropbox/Projects/ds/test/

cd $dir1

cd $dir2