fandiaye
Posts: 20
Joined: Tue Oct 06, 2015 12:44 am

please help explain this command

Mon Nov 09, 2015 2:30 am

sudo rm -rf ~/.cache/pip

what does this command do? I'm in the process of installing OpenCV and nothing happens when i type this in.
Thanks in advance for the help

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: please help explain this command

Mon Nov 09, 2015 3:18 am

Rm is the command to remove files. The -r is for it to do it recursively, essentially deleting a folder and everything in it. The -f is to force it, no prompt.
There are 10 types of people: those who understand binary and those who don't.

W. H. Heydt
Posts: 12617
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: please help explain this command

Mon Nov 09, 2015 4:29 am

man rm
will tell you all about the rm command and what the flags do. Be very, very careful with "rm -rf" because you can wipe the entire system with it.

To add ro what was said, the "sudo" at the front means that it is being run with superuser (root) privileges, which means that *nothing* will stop it from working.

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: please help explain this command

Mon Nov 09, 2015 4:43 am

fandiaye wrote:sudo rm -rf ~/.cache/pip

what does this command do? I'm in the process of installing OpenCV and nothing happens when i type this in.
Just because nothing is echoed back does not mean that nothing is happening.

W. H. Heydt
Posts: 12617
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: please help explain this command

Mon Nov 09, 2015 4:45 am

stderr wrote:
fandiaye wrote:sudo rm -rf ~/.cache/pip

what does this command do? I'm in the process of installing OpenCV and nothing happens when i type this in.
Just because nothing is echoed back does not mean that nothing is happening.
Indeed. That is the default unix--and Linux, by derivation--behavior of commands.

Return to “Beginners”