Inside of my Linux directory, I have a file named TopSample$Config.class.
Whenever I try to copy this file to another location/directory, it is not allowing me to do so.
I am doing it this way:
cp TopSample$Config.class /home/praveen/com/config/
Please let me know if this isn’t possible.
The shell will interpret
$Configas a variable. And it will expand to empty string.You can put single quotes around to keep the literal value:
Another way is to escape the
$(dollar sign) by using\(backslash)