- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: why it is required to place a ".", & a "/" b4 ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 06:55 AM
тАО01-06-2005 06:55 AM
why in linux executeable files are run as
# ./executeable_file_name
why it is required to place a period ".", and a slash "/" before executeable files, to run ?
Regards
Maaz
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 07:10 AM
тАО01-06-2005 07:10 AM
SolutionChris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 07:36 AM
тАО01-06-2005 07:36 AM
Re: why it is required to place a ".", & a "/" b4 executeables, to run ?
You have to specify "./" in front of your executeable because you don't have "." in your $PATH environmental variable, which is a good thing. Otherwise, some sneaky person could create a Trojan executeable named 'ps' or 'ls' and put it in a directory, waiting for you to run it.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 08:21 AM
тАО01-06-2005 08:21 AM
Re: why it is required to place a ".", & a "/" b4 executeables, to run ?
I think by this you would have understood the reason to sepcify a ./ is that the current directory or path where you are is not the PATH environment. As mentioned by others here it is also kind of a security thing so that you know where the executable is and can execute it.
Rgds
HGN
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-06-2005 03:49 PM
тАО01-06-2005 03:49 PM
Re: why it is required to place a ".", & a "/" b4 executeables, to run ?
John Poff the security issue u describe is no doubt is a very nice benefit, and feature. I m highly thankful to u for describing the security issue.
again Thanks a Million
Regards,
Maaz