Saturday, May 4, 2024
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 30670  / 2 Years ago, tue, august 30, 2022, 5:29:07

Recently I have seen one issue with a cache problem. The problem comes with broken hash and that could be fixed with



sudo rm -rf /var/lib/apt/lists/*


and



sudo rm /var/lib/apt/lists/* -vf


But I am not understanding the difference between these two. Can somebody explain the difference?


More From » command-line

 Answers
7

from the man Page:




-r, -R, --recursive




remove directories and their contents recursively i.e. Folders inside them will be removed also.




-v, --verbose




explain what is being done or show what is happening.



For the -f




-f, --force ignore nonexistent files, never prompt




You will not be promoted whether to remove the file or not. In other words: You will not be asked this question "Do you want to remove the files? Yes or No"


[#35470] Wednesday, August 31, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
odenanno

Total Points: 207
Total Questions: 113
Total Answers: 94

Location: South Korea
Member since Sat, Oct 2, 2021
3 Years ago
odenanno questions
;