I was wondering What the command
./ exactly does
Thanks for help.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
It's not a command, it's a location in the filesystem.
. is the current working directory, and
/ is a path separator. What you are doing with that command, is specifying a file in the current working directory. You can do this without
./ except when you want to execute the file, so, as in the command
you are telling the shell to execute the file. You can execute a file that is not in the current working directory by specifying the path to it, for example
/bin/uname as long as the file is executable, and
./ is specifying the path in the same way.