'sudo ls'
Nils Kassube
kassube at gmx.net
Thu Jul 12 19:37:54 UTC 2007
pol wrote:
> I would expect to get the listing of the content of the dir 'profiles',
> in every home:
>
> sudo ls -l /home/*/.kde/share/apps/konqueror/profiles
>
> Surprisingly, only content of one user is displayed.
> I am sure that every user has files in that dir, as one can verify by
> replacing the "*" with user name, in the above command.
>
> What is wrong?
The commandline is expanded by the shell before any program is started.
The .kde directories however are not world readable. Therefore only the
contents of the own directory is displayed. Use this instead:
sudo sh -c "ls -l /home/*/.kde/share/apps/konqueror/profiles"
Nils
More information about the ubuntu-users
mailing list