reredok
asked on
linux $PWD
Hello EE,
I work with serval linux servers and I was wondering if I can access the local dir as an shortcut like ~ (=users home).
For example: I want to copy wp-config.php.
Extensive: sudo cp /var/www/html/wordpress/wp -config.ph p /var/www/html/wordpress/wp -config.ph p-backup02 052106
so I use $PWD (locate in right dir) like: cp /var/www/html/wordpress/wp -config.ph p '$PWD'\wp-config.php-backu p02052106 or $PWD\wp-config.php-backup0 2052106 ... it does not work
how can I expand $PWD for my purpose?
Thank you very much in advance for your answer
reredok
I work with serval linux servers and I was wondering if I can access the local dir as an shortcut like ~ (=users home).
For example: I want to copy wp-config.php.
Extensive: sudo cp /var/www/html/wordpress/wp
so I use $PWD (locate in right dir) like: cp /var/www/html/wordpress/wp
how can I expand $PWD for my purpose?
Thank you very much in advance for your answer
reredok
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER