Link to home
Start Free TrialLog in
Avatar of reredok
reredokFlag for Germany

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.php /var/www/html/wordpress/wp-config.php-backup02052106
so I use $PWD (locate in right dir) like: cp /var/www/html/wordpress/wp-config.php '$PWD'\wp-config.php-backup02052106 or $PWD\wp-config.php-backup02052106 ... it does not work

how can I expand $PWD for my purpose?

Thank you very much in advance for your answer
reredok
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of reredok

ASKER

thx