The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Tar only the Directories and Sub Directories Andysundar UNIX for Dummies Questions & Answers 3 06-01-2008 08:54 PM
Listing directories and sub directories jinxor UNIX for Advanced & Expert Users 3 03-11-2008 10:27 AM
moving directories to new directories on multiple servers mackdaddy07 Shell Programming and Scripting 0 04-06-2007 11:30 AM
directories arunkumar_mca UNIX for Dummies Questions & Answers 2 10-14-2004 03:23 AM
du -ks on certain directories only Shambo Shell Programming and Scripting 1 09-05-2002 04:41 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 03-02-2004
ssmian ssmian is offline
Registered User
  
 

Join Date: Jan 2004
Posts: 5
Lightbulb what is the . and .. directories ?

Hi,
Please let me know the significance of . and .. directories in a file system.
One of my current file system doesn;t hv .. directory and i can run this command
du -k .
no permission in the current directory.
thanks
sita
  #2 (permalink)  
Old 03-02-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,115
Single dot is the current directory itself. When you open ".", you open the current directory without needing to know its name.

Double dot is the parent directory. So "cd .." will move you to the parent directory.
  #3 (permalink)  
Old 03-02-2004
ssmian ssmian is offline
Registered User
  
 

Join Date: Jan 2004
Posts: 5
Thanks for responding.
My problem is
I dont find .. in my file system at all when I do ls -als
so when run du -k . it says
cannot find the working directory

How do i create that .. directory
  #4 (permalink)  
Old 03-02-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,115
What version of unix are you using? And what type of file system?

In general, if .. is supposed to be there but isn't, you have a damaged file system. You should unmount it and run fsck on it.
  #5 (permalink)  
Old 03-02-2004
ssmian ssmian is offline
Registered User
  
 

Join Date: Jan 2004
Posts: 5
mine is a.i.x 5.2.0.0.
I took a tar and blown the file system and recreated it.
But still i don;t see that .. directory and may of my program fails.
sample
du -k .
cannot find the current direectory
thanks
sita
  #6 (permalink)  
Old 03-02-2004
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,115
You need an aix expert and I have never used aix. But if know how to run fsck on the disk, that might be worth a try.
  #7 (permalink)  
Old 03-02-2004
ssmian ssmian is offline
Registered User
  
 

Join Date: Jan 2004
Posts: 5
Unhappy

I tried running fsck too. It didn't help

Can some body else advice how to go about or faced this kind of issues ?.
thanks
ssmian
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:32 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0