Answers for "how to go back two directories linux"

1

__dirname go back one directory

let reqPath = path.join(__dirname, '../');//It goes 1 folders or directories back from given __dirname.
Posted by: Guest on February-02-2021
2

how to go back to the last directory in linux

/
* File & Directory Commands *

To navigate into the root directory, use */ "cd /" /*
To navigate to your home directory, use */ "cd" /*or*/ "cd ~" /*
To navigate up one directory level, use*/ "cd .." /*
To navigate to the previous directory (or back), use */ "cd -"
Posted by: Guest on December-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language