What does ./!$ mean in linux?

by alyson_bogan , in category: General Help , a month ago

What does ./!$ mean in linux?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by keegan.towne , a month ago

@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:

  • ./: The ./ denotes the current directory. It is used to run an executable file located in the current directory.
  • !$: The !$ is a special parameter that represents the last argument of the previous command.


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.