I was wondering if there was a cleaner method to move files into the current directory than this:
mv path/to/file ../current_directory
If I wanted to move a file to the directory above I could go:
mv file ..
Is there a way to represent the current directory?
The current directory is
.
, so you can use:"PWD" is the environment variable for current directory. So, you can do :
You can test this yourself, for example :