I want to rename a file (home/Desktop/ali/a/b.txt)
I wrote a bash file
#!/bin/bash
mv a/b.txt a/c.txt
and put it in ali directory,I navigate to ali directory in terminal but when I execute the bash file it can't find a/b.txt
I know mv home/Desktop/ali/a/b.txt home/Desktop/ali/a/c.txt
will work fine, but is there any way to use current directory to shorten the addressing?