what does a dot character mean in linux?
Hi folks,
i was reading a tutorial about how to find files and folder sizes and came a cross this example Quote:
|
The dot means "this directory".
So in the output of du it means the total for this directory. For sub directories it means the subdirectory below this directory, like ./uploads = the subdirectory uploads below this directory. |
Quote:
|
Please mark as SOLVED once you have an answer or solution.
|
In case you run into it in the future, while . means current directory, .. means previous directory.
This can be invoked multiple times, Code:
../../test If I am in my home directory Code:
. == /home/Miati To run executable scripts, they must be invoked with the current directory. So if you have the script called foo, in the terminal typing foo would not work. You would need to type ./foo Code:
$ foo So if you were trying to access a hidden folder in the same directory, something like this would be valid: Code:
./.config/ |
To fully answer the question "what does a dot character mean in linux?" see this site. A dot can have multiple meanings.
|
All times are GMT -5. The time now is 07:01 PM. |