Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I always prefer keeping my disk optimized by using the above command. I wanted to know whether this is a safe practice. I am using Ubuntu 16.04
Yes! It actually tells you to run it on most updates.
Yes, it is safe. This command just removes the packages that were installed by other packages but are no longer needed.