Posts

Showing posts from October 24, 2018

Where is the command lines stored before it is executed?

Image
Clash Royale CLAN TAG #URR8PPP up vote -1 down vote favorite I have such a script in ~/draft $ cat test.sh #! /usr/local/bin/bash for i in ./*;do echo $i done The chunk of code are stored in test.sh , when I run it $ bash test.sh ./first.html ./second.html ./test.sh ./third.html So I run the script name test.sh and get the output. Alternatively, I could run the command directly as: $ for i in ./*; do echo $i; done ./first.html ./second.html ./test.sh ./third.html The second chunk get the identical results. Since the preceding codes resides in file test.sh , what's the filename where the command for i in ./*; do echo $i; done live? bash share | improve this question edited 3 mins ago Kusalananda 111k 15 216 342 asked 1 hour ago rider dragon 227 1 6 New contributor rider dragon is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. add

Does Ubuntu Ship With Auto-updating Snaps?

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I don't use snaps, but I'm aware that recent releases of Ubuntu ship with snap pre-installed. My understanding is that snaps are automatically updated, and that updating cannot be disabled. Am I correct in understanding that if I install Ubuntu (and likely many distros derived from Ubuntu), even if I'm not using snaps, there are pre-installed snap packages that will be forcefully updating? ubuntu software-updates snap share asked 9 mins ago Dumb Questions 1 New contributor Dumb Questions is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. Yes. – muru 4 mins ago add a comment  |  up vote 0 down vote favorite I don't use snaps, but I'm aware that recent releases of Ubuntu ship with snap pre-installed. My understanding is that snaps are autom

Stuck in Grub CLI after Arch installation

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I installed Arch Linux alongside Windows 10. The installation was flawless and also installed Grub and os-prober . I rebooted the system and it greeted me with a grub-rescue screen. I was able to get out of it by reinstalling grub because the /boot/grub/x86_64-efi folder is gone and all .mod files are gone. So I used Arch live to reinstall grub and used BCDEDIT from Windows 10 to use the GRUB bootloader. However, this time, when I restart my system, it displays grub CLI and all the files inside /boot/grub/ except for grub.cfg are gone. I installed them when I was in arch-chroot so that can't be the problem. I tried finding others with the same problem as me but I can't find any solutions. I tried to copy and paste the mod files from /usr/lib/grub/x86_64-efi to /boot/grub but when I type insmod normal , and then normal , it will just refresh the grub cli screen. It's been two days and I haven't