John Harrison
New Member
Hi, so I'm doing a uni course on networking and one of the modules is Linux. Some of the information in the labs makes it quite difficult to find online examples so I came here in hope of finding some good nature'd people to help me.
I have been using the find command to find where information is in certain files.
# find ./ -type f -exec grep -l 'fsck' {} \; is one example and I'm fine with that and how it returns...
./mke2fs.conf telling me that's where it found 'fsck'...
The thing I'm having trouble with is using this to locate and run the gnome-calculator using only the find command. I'm running debian 9.1.0 and I'm not having much luck figuring this out.
I've tried a bunch of different stuff that hasn't worked and the man pages don't seem to contain this information. I know about the -execute parameter but I don't know where to put it to get it to work.
I've navigated to the /usr/bin directory where the applications is stored and run this command.
# find ./ -type f -exec grep -l gnome-calculator {} \;
But it's not working. Any help would be greatly appreciated and thanks in advance.
I have been using the find command to find where information is in certain files.
# find ./ -type f -exec grep -l 'fsck' {} \; is one example and I'm fine with that and how it returns...
./mke2fs.conf telling me that's where it found 'fsck'...
The thing I'm having trouble with is using this to locate and run the gnome-calculator using only the find command. I'm running debian 9.1.0 and I'm not having much luck figuring this out.
I've tried a bunch of different stuff that hasn't worked and the man pages don't seem to contain this information. I know about the -execute parameter but I don't know where to put it to get it to work.
I've navigated to the /usr/bin directory where the applications is stored and run this command.
# find ./ -type f -exec grep -l gnome-calculator {} \;
But it's not working. Any help would be greatly appreciated and thanks in advance.