I face the problem with
$_ special parameter in terminal, And its call the last argument of the previous command.
It was not work with
mv command in gnome-terminal.It happen to me during folder creation and
cp file with $_ like below
mkdir test cp file.c $_
instead of copying file to destination , it create a file in current directory named
Same happen with
mkdir test mv file.c $_
instead of moving file to destination, It moving in the name
To find the problem i use echo
$ mkdir test $ echo $_ _filedir
Why is $_ not working with cp, mv commands?