What's the coolest thing you know on Ubuntu

howtoubuntu

Sep 20th, 2021 02:18 PM

Comment down below what is some interesting things you know on Ubuntu. Like a cool shortcut or something else. I am also taking Post ideas!

suhailkakar

Sep 21st, 2021 07:25 AM

If you write a bash scripts to automate specific tasks, you might get frustrated because you have to say yes to every command you run. Prefix any command with yes | to bypass it ;)

yes | apt-get update
Report
1
howtoubuntu

Sep 21st, 2021 03:19 PM

Suhail Kakar.

You can just add the -y flag right before typing in the apt get command.

Example when I need to type yes to continue.

sudo apt-get install apache2

Example when I don't need to type yes to continue.

sudo apt-get install apache2 -y

Try it out👍💡