Hey!
This was a fantastic piece of code, get a look.
It's the real deal if you want to send one file to multiple sequential subdirectories:
printf "bomba_000%02i " $(seq 1 10) | xargs -n 1 cp puzzle.xml
Got this amazing solution from here: http://unix.stackexchange.com/questions/49011/copying-a-single-file-to-multiple-directories-using-cp
I'll probably update this to be a little bit more specific on generic names, but for now it's awesome.
Cheers.
Showing posts with label LINUX. Show all posts
Showing posts with label LINUX. Show all posts
Friday, December 5, 2014
Saturday, August 6, 2011
Linux: Grub Loader Order & Keyboard Problem
Good afternoon, dudes,
After a long time cracking up my head with the GRUB loader order because i was having some serious problems with my keyboard in the console, i got really pissed off and was almost sending Debian by the Windows (got it?), but today i just got it right.
So i'm going to spill the milk and give a hand for these two situations:
GRUB BOOT LOADER ORDER:
Commands you will do:
1) ENTER AS "root":
1.1) su
1.2) "enter with you password"
2) GET IN THE GRUB DIRECTORY: cd /boot/grub
3) FIND OUT IF YOU HAVE THE ARCHIVE: ls | grep grub
3.1) IF (grub.cfg == EXISTS)
EXECUTE: vi grub.cfg
ELSE
TRY TO FIND THE RIGHT ARCHIVE TO EDIT
4) LOOK FOR THE TITLES, THE LINES WILL START WITH "menuentry 'the_name_of_OS' "
5)COUNT HOW MANY "menuentry" ARE THERE AND CHANGE THE LINE:
"set default="NUMBER OF THE DEFAULT" "
6)PRESS "Esc" , PRESS ":x" , PRESS <Enter>
7) Mazel Tov, dudes! Just restart your equipment and start a fiesta, because this baby is done.
PS.1: If you don't like the title or just want change the title of the OS in the boot loader, you can change it when you get in STEP 4).
PS.2: Remember that you have to count the boot order from 0. So if you have 3 OSs and you want to select the third in the list you'll put "2" in STEP 5).
CONSOLE KEYBOARD PROBLEM:
Well, i went looking all over Google and the guys had some real fancy stuff coming up to just resolve the problems, but as i'm not quite a specialist in the Linux-way of doing things, so i found a real simple way of editing the system files (that's why i was able to adjust the boot loader).
When you get to the file you want, just use:
gedit <THE BLOODY FILE YOU WANT>
That's it, bros.
Hasta la vista, babes.
After a long time cracking up my head with the GRUB loader order because i was having some serious problems with my keyboard in the console, i got really pissed off and was almost sending Debian by the Windows (got it?), but today i just got it right.
So i'm going to spill the milk and give a hand for these two situations:
GRUB BOOT LOADER ORDER:
Commands you will do:
1) ENTER AS "root":
1.1) su
1.2) "enter with you password"
2) GET IN THE GRUB DIRECTORY: cd /boot/grub
3) FIND OUT IF YOU HAVE THE ARCHIVE: ls | grep grub
3.1) IF (grub.cfg == EXISTS)
EXECUTE: vi grub.cfg
ELSE
TRY TO FIND THE RIGHT ARCHIVE TO EDIT
4) LOOK FOR THE TITLES, THE LINES WILL START WITH "menuentry 'the_name_of_OS' "
5)COUNT HOW MANY "menuentry" ARE THERE AND CHANGE THE LINE:
"set default="NUMBER OF THE DEFAULT" "
6)PRESS "Esc" , PRESS ":x" , PRESS <Enter>
7) Mazel Tov, dudes! Just restart your equipment and start a fiesta, because this baby is done.
PS.1: If you don't like the title or just want change the title of the OS in the boot loader, you can change it when you get in STEP 4).
PS.2: Remember that you have to count the boot order from 0. So if you have 3 OSs and you want to select the third in the list you'll put "2" in STEP 5).
CONSOLE KEYBOARD PROBLEM:
Well, i went looking all over Google and the guys had some real fancy stuff coming up to just resolve the problems, but as i'm not quite a specialist in the Linux-way of doing things, so i found a real simple way of editing the system files (that's why i was able to adjust the boot loader).
When you get to the file you want, just use:
gedit <THE BLOODY FILE YOU WANT>
That's it, bros.
Hasta la vista, babes.
Subscribe to:
Posts (Atom)