ls -l displays output with an error

Thread Tools Search this Thread
Operating Systems Solaris ls -l displays output with an error
# 1  
Old 06-10-2011
ls -l displays output with an error

when i use ls command it works normal but when i using additional parameter with ls like ls -l , ls -a... it shows a error followed by the output.

# ls -l
./hgfs: Operation not applicable
total 12861
-rw-r--r--   1 root     root           0 Jun  1 21:12 1
drwxr-xr-x   2 root     root         512 Jun  2 20:02 Desktop
drwxr-xr-x   2 root     root         512 Oct 16  2010 Documents
-rw-r--r--   1 root     root          47 Nov 29  2010 b.txt
lrwxrwxrwx   1 root     root           9 Oct 16  2010 bin -> ./usr/bin
drwxr-xr-x   7 root     sys          512 Oct 16  2010 boot
drwxr-xr-x   4 root     nobody       512 May 29 11:25 cdrom
-rw-------   1 root     root     6394517 Jun  2 21:42 core

this error came after i edited /etc/profile and /etc/skel/.profile file. i just added enteries into this file to change my prompt view. boot when i saw this error appearing i removed those enteries and rebooted my system . but still this error shows up. but when using simple "ls" command it wont throw error. error comes when using additional parameter with ls.. i am using solaris installed in vmware.

Last edited by radoulov; 06-10-2011 at 10:33 AM.. Reason: Code tags!
# 2  
Old 06-10-2011
May be you aliased ls or changed PATH? Look at:
which -a ls

# 3  
Old 06-10-2011
# which ls -l
no -l in /usr/sbin /usr/bin
# which ls -ltrh
no -ltrh in /usr/sbin /usr/bin

/hgfs is a mounted file system. i umounted it and tried ls -l it worked corrected. but when i try to remount it it showed no such mount point. when i reboot my system it is mounted back but ls -l again shows the error.
# 4  
Old 06-10-2011
Excuse me:
which -a ls

It gives you information about all "ls" in your system. But the problem may be in your mount options but I never work with hgfs. Sorry, here I can't help.
This User Gave Thanks to yazu For This Post:
# 5  
Old 06-10-2011
Okay Np.
Thanks Yazu..
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script Output Displays Multiple Text

Hello there, I'm using a read-while loop to preserve the word Failed within a text file. For example, if the word Failed exist twice in a single text file, my STDOUT should re-direct to a new text file and display Failed twice. My output is attached to this thread. I would like output to... (4 Replies)
Discussion started by: SysAdminRialto
4 Replies

2. Hardware

POST displays error sparc netra 240

Hi guys, when I power on my sun netra 240 server, it displays these error messages: 1. Notice: cpu 0 has 2048/2048 MB of memory disabled. 2. Error : The following devices are disabled dimm1. Please can anyone be kind enough to explain this for me? Thanks (2 Replies)
Discussion started by: cjashu
2 Replies

3. UNIX for Dummies Questions & Answers

Creating a file that contains output from a command, and then displays itself

hey, I'm trying to create the command that will create a file named user.txt that contains the output of the command cut -d: -f1,5 /etc/passwd, and displays itself afterwards. I don't know how to bridge cat > user.txt with cut -d: -f1,5 /etc/passwd, or how display it afterwards. Any help would... (2 Replies)
Discussion started by: raidkridley
2 Replies

4. AIX

who -r displays no output

Hello. I have an AIX machine at 6100-00. We had some strange activity since filling up /tmp. One symptom is that who -r displays no output. It doesn't hang just no output is displayed. We are going to boot the machine, but prior to that I'd like to dig a bit to see what may be causing the... (0 Replies)
Discussion started by: maficdan
0 Replies

5. HP-UX

Dual Displays HP-UX 10.20

Hello All! Where I work we have C3600's that have a video cards that have both DVI and Regular RBG type monitor ports on them. My question is: is it possible to spread my desktop across two monitors that are plugged into the one card much like you can do with NVIDIA software like NVIEW for... (0 Replies)
Discussion started by: giftedone
0 Replies

6. UNIX for Dummies Questions & Answers

Dual Displays

I have a TV and a monitor hooked up to my box. Right now the system is displaying all the information on the TV instead of the monitor, obviously I want to switch this, as the TV is very impracticle for everything other than watching movies. I thought I remembered a command I used to use that... (2 Replies)
Discussion started by: Synbios
2 Replies
Login or Register to Ask a Question