This may be too general a question, like ... I'm at a dead end trying to move directories from a shell script. I am not a non-nix user, but I am more comfortable using the command line for most tasks. I would call a script that can move 'me' to a directory instead of a script process that would look like the following:
prompt:> goto lit
where goto is an alias -> goto='./goscript'
and
goscript has some simple code, for example:
cd /path to work dirs/lit/user dir
(provided that each user has a directory inside / on)
I myself circumvented this problem by setting my personal alias to go to the correct directory, run the script, and then return to the original directory. This question was asked to me by an employee who uses a similar method, but wanted the process to become more general, so we do not need to create every single alias that we need. I thought this would be an easy problem to solve, but I'm at a standstill, because in reality I don't really have much experience with the shell ....
linux bash shell pid
jonny
source share