Solved

dot directory in FreeBSD???

Posted on 2016-08-18
4
60 Views
Last Modified: 2016-08-18
I'm trying to figure out what the very top (dot) directory is, and why it shows that it was created today.

dot directory
0
Comment
Question by:hrolsons
  • 2
4 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 250 total points
ID: 41761553
I believe it is telling you it was modified today, not created.  Every time you change one of the entries in that directory, it will be updated / modified.  All operating systems do that as far as I know.
0
 
LVL 87

Assisted Solution

by:rindi
rindi earned 250 total points
ID: 41761572
the "." stands for the directory you are currently in. The ".." stands for the directory below your current directory (or parent directory).

As mentioned above, the date/time you see is just for when last something changed in that directory. From the structure it looks as if it is a user's home directory you are in, and whenever a user logs into his home directory and does something, changes get written to it, so this is absolutely normal.
0
 

Author Comment

by:hrolsons
ID: 41761597
Actually it is my /tmp directory.  A hacker has been using that directory to send spam.  I've taken steps to stop them, and I wan't to make sure they are out by monitoring this directory.

No files in that directory have changed today:

directory 2
0
 
LVL 82

Assisted Solution

by:Dave Baldwin
Dave Baldwin earned 250 total points
ID: 41761600
No files in that directory have changed today:
That is pretty unlikely in a 'tmp' directory.  All that needs to change is something like the size or permissions of one of the files for 'modified' date to change.  

A 'directory' is a special file that contains information about files in that directory.  Even the smallest change to one of those files will update the 'modified' date for the directory.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now