Questions about terminal

Post Reply
Message
Author
tomtom
Posts: 15
Joined: Thu Jun 13, 2019 8:50 am

Questions about terminal

#1 Post by tomtom »

Hello,
I have a couple of questions about terminal in Linux,

1)
I know that file names are case-sensitive, but what about terminal, for example when I have prompt with this message:

Code: Select all

Do you want to continue? [Y/n]
can I just type lower case "y" and hit enter or do I have to type upper case "Y" as shown, and hit enter? Is there any difference? I saw some people don't even type "y", they just hit enter without typing anything, will it work?

2)
I saw someone used commands like:

Code: Select all

apt-get --yes
apt-get -y 
and I know that these flags enable auto accept for prompt when installing or updating packages, but some I heard that this flag can cause problems and it is better to accept manually, is that true? What is the best way to update and upgrade packages using apt-get in one line?

3)
When I use

Code: Select all

apt-get update
how can I see in the terminal, if I have updates available? Because all I can see is a bunch of links :puppy:

Thanks!

User avatar
Adrian
Developer
Posts: 8267
Joined: Wed Jul 12, 2006 1:42 am

Re: Questions about terminal

#2 Post by Adrian »

1. You can type either y or Y, it shows Y with capital letter because that's the default option so when you press Enter that's the selected on, sometime the prompt will show y/N in which case N is the default
2. Yes, it's probably better to examine the question and respond appropriately.
3. apt-get update just refreshes the info, you'll see the links while is doing that, to see the upgrades available you need to run a different command, something like

Code: Select all

 apt list --upgradable
(notice that this is "apt" not "apt-get", I think apt-get doesn't have that option)

komer
Posts: 80
Joined: Fri Jan 05, 2018 7:37 pm

Re: Questions about terminal

#3 Post by komer »

Post deleted by author.
Last edited by komer on Wed Mar 25, 2020 10:40 pm, edited 1 time in total.

User avatar
manyroads
Posts: 2623
Joined: Sat Jun 30, 2018 6:33 pm

Re: Questions about terminal

#4 Post by manyroads »

Pax vobiscum,
Mark Rabideau - ManyRoads Genealogy -or- eirenicon llc. (geeky stuff)
i3wm, bspwm, hlwm, dwm, spectrwm ~ Linux #449130
"For every complex problem there is an answer that is clear, simple, and wrong." -- H. L. Mencken

tomtom
Posts: 15
Joined: Thu Jun 13, 2019 8:50 am

Re: Questions about terminal

#5 Post by tomtom »

@Adrian @komer @manyroads thanks!

Post Reply

Return to “General”