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
filename in current directory calgone337 Shell Programming and Scripting 2 04-15-2007 02:21 PM
How Can I Easily Determine If A File Has been Added to a Directory goodmis UNIX for Advanced & Expert Users 7 02-04-2007 01:13 AM
How Can I Easily Determine If A File Has been Added to a Directory goodmis UNIX for Dummies Questions & Answers 1 01-31-2007 06:56 PM
determine owner directory permissions from within the directory Sniper Pixie Shell Programming and Scripting 4 03-07-2006 05:06 PM
Using tar for current directory, but not subs beilstwh UNIX for Dummies Questions & Answers 3 09-13-2004 09:33 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-08-2006
axes axes is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 49
cannot determine current directory

Hi,
when I execute some simple commands on my solaris system, I am getting the following warning message:

Could anybody tell me what could be the reason

Ex:- If I give the command,
which ls
Warning: cannot determine current directory
/usr/bin/ls

Thanks in advance
  #2 (permalink)  
Old 11-08-2006
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,953
please post the output from "df -h" or "df -k" maybe the /var filesystem is full....? and what is the output of "pwd"?
  #3 (permalink)  
Old 11-08-2006
axes axes is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 49
The output of df -k is:-

Filesystem kbytes used avail capacity Mounted on
/dev/md/dsk/d0 10332460 1607447 8621689 16% /
/proc 0 0 0 0% /proc
fd 0 0 0 0% /dev/fd
mnttab 0 0 0 0% /etc/mnttab
swap 11718104 8 11718096 1% /var/run
/dev/md/dsk/d40 5170926 1516632 3602585 30% /crash
/dev/md/dsk/d20 5170926 2650269 2468948 52% /tmp
/dev/md/dsk/d30 3080879 114518 2904744 4% /seos
/dev/md/dsk/d50 25817063 650972 24907921 3% /home
/dev/md/kplusintfsds/dsk/d0
10317788 811904 9402707 8% /home/applications
/dev/md/kplusintfsds/dsk/d10
25800247 10126982 15415263 40% /files_local
/dev/md/kplusintfsds/dsk/d20
15115195 1471029 13493015 10% /kreditnet
/dev/md/kplusintfsds/dsk/d30
10317788 134825 10079786 2% /kpatches
/dev/md/kplusintfsds/dsk/d40
25195256 7123432 17819872 29% /dump
/dev/md/kplusintfsds/dsk/d50
25195256 3878854 21064450 16% /proddump

If i give, man ls command,it is displaying error message as
getcwd: Permission denied

If i run the commands from the (/) file system, they are working fine
whereas If i run commands from my directory it is giving the above error messages.

Thanks for ur response
  #4 (permalink)  
Old 11-08-2006
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,953
your filesystem is fine.. seems like some rights problem occure....
  #5 (permalink)  
Old 11-08-2006
justsam
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
There is one scenario where this can happen.
You are in a directory. And somebody else might have deleted the directory without your knowledge.

Change to a different directory and try.
  #6 (permalink)  
Old 11-08-2006
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 2,953
Quote:
Originally Posted by justsam
There is one scenario where this can happen.
You are in a directory. And somebody else might have deleted the directory without your knowledge.

Change to a different directory and try.
yeah, you are right... or a filesystem ist unmountet without your knowledge...
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 04:33 AM.


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