Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

./ command in linux ubuntu?

I have to use a command ./name details and execute while usually only ./a.out is used for execution.How do I use ./name instead of ./a.out for execution?

Update:

it must be obvious to basic linux users but i have to execute a commans

./name details

2 Answers

Relevance
  • 8 years ago
    Favorite Answer

    If ./name is an executable file but you can't just run it from the command line, you may need to grant it executable permissions

    chmod +x ./name

    see

    man chmod

    for more details

    Source(s): linux user
  • 8 years ago

    a.out is the name of the executable, and the ./ means it's in the current working directory. You could rename it with "mv a.out name" so that you could execute it with ./name. If you built it with gcc, add the argument "-o name" when you run gcc.

Still have questions? Get your answers by asking now.