I've just installed Debian/Buster, and I'm trying to search for a folder in the CLI with :
su find / -type d -name "*findcriteria*"
and I'm getting :
su: Invalid option -- 't'
where's the 't' coming from ?
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Can't use find
Re: Can't use find
Oops just realised su is used first to alias to a user, then the command.
But when I try that, i get a permission denied, how can that be with su/root?
But when I try that, i get a permission denied, how can that be with su/root?
- None1975
- df -h | participant
- Posts: 1404
- Joined: 2015-11-29 18:23
- Location: Russia, Kaliningrad
- Has thanked: 46 times
- Been thanked: 70 times
Re: Can't use find
Trysilas2 wrote:But when I try that, i get a permission denied, how can that be with su/root?
Code: Select all
su -
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github
Debian Wiki | DontBreakDebian, My config files on github
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times
Re: Can't use find
Code: Select all
su -c 'find / -type d -name "*findcriteria*"'
deadbang
Re: Can't use find
Thanks for your help, that seems to be working with the -c switch , what does that do anyway?
- Head_on_a_Stick
- Posts: 14114
- Joined: 2014-06-01 17:46
- Location: London, England
- Has thanked: 81 times
- Been thanked: 133 times