Welcome to the Linux Foundation Forum!
another noobee thing
willettwork
Posts: 39
The .tar files are automatically stuck in Downloads. does it matter where you are in the directory when you unpackage and ./configure them? do they load where they are suppose to go?
0
Comments
-
same question if you are doing a yum install?0
-
???
./
This orders the shell to look into your current directory (that is "."). In fact, it adds the directory to the PATH variable. Thefore, you need to be where "configure" script is.
And no, they don't load where they're suposed to. I will assume you are doing a classic software installation with "configure && make && make install".
configure will ready the software to compile, make will compile it and "make install" will place the needed files in your system. NOTICE that this is standard isntallation, if your distro places things in a special way.... it probably won't work
With a "yum install" yes, everything will be in place and your system will be fine
Therefore... use yum!!!
Regards0 -
is it?. thanks for the info.This orders the shell to look into your current directory (that is ".")
But, in that way, a executable in that should work, without giving '.' , right?
means, why we need to mention the current dir location, while we are already in the dir, where the binary file is present?
I think all binay executables need "./" to run, unless they are in /bin or /sbin.
Just my opinion. correct me if I am wrong Marc
BTW, that "&&" logic you used to explain is, Good.0 -
And , is the quote option working ?0
-
Quoting still doesn't work (as neither does most of the forum functionallity).
The shells that follow the POSIX standard look in your PATH variable for binary files to execute. In a regular *nix configuration the current working directory (shown by $PWD as in Print Working Directory) is not in the PATH variable and that's why binaries are not found when you try to execute them without the "./"
When you type the "./" you are doing something like:PATH=./:$PATH
Effectevely adding your current direcory to the PATH. From then on you can run binaries in your current directory
If you really want to run binaries without the "./" you could add the current directory to your PATH with something likeexport PATH=$PWD:$PATH
NOTICE: security risk!
To go even deeper into this: the "." is just a file with the inode number of your current directory, i.e. the same as $PWD
Try this:diff <(stat . ) <(stat $PWD)
And you'll see that the only difference is the name!
Regards0 -
Thanks. Its a good information that I dont know so far.
regarding the security risk, I will try to find what is it .
Will get back here, if need more/clear info about that :-)0
Categories
- All Categories
- 175 LFX Mentorship
- 175 LFX Mentorship: Linux Kernel
- 745 Linux Foundation IT Professional Programs
- 372 Cloud Engineer IT Professional Program
- 168 Advanced Cloud Engineer IT Professional Program
- 73 DevOps IT Professional Program - Discontinued
- 3 DevOps & GitOps IT Professional Program
- 98 Cloud Native Developer IT Professional Program
- 7.6K Training Courses & Learning Paths
- AI & ML Training
- Blockchain & Decentralized Identity Training
- 1 Cloud & Containers Training
- Cybersecurity Training
- DevOps & Site-Reliability Training
- Linux Kernel Development Training
- Networking Training
- Open Source Best Practice Training
- System Administration Training
- System Engineering Training
- Web & Application Development Training
- 2 LFD103-JP クラス フォーラム
- 4 LFD210-CN Class Forum
- 764 LFD259 Class Forum
- 681 LFS101 Class Forum
- 2 LFS158-JP クラス フォーラム
- 162 LFS207 Class Forum
- 3 LFS207-DE-Klassenforum
- 4 LFS207-JP クラス フォーラム
- 61 LFS241 Class Forum
- 52 LFS242 Class Forum
- 42 LFS243 Class Forum
- 19 LFS244 Class Forum
- 4 LFS250-JP クラス フォーラム
- 166 LFS253 Class Forum
- 1.4K LFS258 Class Forum
- 792 Hardware
- 202 Drivers
- 68 I/O Devices
- 37 Monitors
- 95 Multimedia
- 173 Networking
- 91 Printers & Scanners
- 87 Storage
- 768 Linux Distributions
- 81 Debian
- 67 Fedora
- 22 Linux Mint
- 13 Mageia
- 24 openSUSE
- 150 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 356 Ubuntu
- 465 Linux System Administration
- 31 Cloud Computing
- 73 Command Line/Scripting
- Github systems admin projects
- 98 Linux Security
- 78 Network Management
- 101 System Management
- 46 Web Management
- 106 Mobile Computing
- 18 Android
- 73 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 392 Off Topic
- 121 Introductions
- 181 Small Talk
- 29 Study Material
- 946 Programming and Development
- 310 Kernel Development
- 618 Software Development
- 979 Software
- 371 Applications
- 182 Command Line
- 5 Compiling/Installing
- 68 Games
- 317 Installation
- Archived
- 2 LFD140 Class Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)