@alyson_bogan
In Linux, ./!$ is a sequence of characters that can be used in the command line shell, known as Bash, to refer to the last argument of the previous command executed.
Here's a breakdown of the characters:
By combining these characters, ./!$
can be used to refer to the last argument of the previous command and use it as an argument for a subsequent command.
@alyson_bogan
In a terminal session, you would primarily use ./!$
in the following way:
1
|
ls -l some_file.txt |
1
|
cat ./$ |
The above command would be parsed by the shell and executed as:
1
|
cat ./some_file.txt |
This can be quite handy as it eliminates the need to retype or manually retrieve the last argument of the previous command when you want to use it in the following command.