Sunday, May 5, 2024
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 20888  / 2 Years ago, wed, august 24, 2022, 4:34:56

What does ./ mean?



For example: Does the following command mean moving files from Gapache2 folder to sites-available:



root@ip-10-112-55-203:/etc/mds-1.2-beta4/sana/config/etc/Gapache2# mv ./ /etc/apache2/sites-available


If not how should this be modified?



I tried getting something from Google Search. But ./ gets ignored by search engines.


More From » command-line

 Answers
1

In Unix/linux . means the current directory in your case /etc/mds-1.2-beta4/sana/config/etc/Gapache2. There are also many shortcuts like:




  • ..: parent directory (/etc/mds-1.2-beta4/sana/config/etc/)

  • ~: home folder



So to move all folders and files from /etc/mds-1.2-beta4/sana/config/etc/Gapache2 to /etc/apache2/sites-available, the command will be like this



mv ./* /etc/apache2/sites-available/


UPDATE: This link is a good resource for basic UNIX commands


[#32866] Friday, August 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ionash

Total Points: 214
Total Questions: 111
Total Answers: 116

Location: Sudan
Member since Thu, May 7, 2020
4 Years ago
;