PDA

View Full Version : [ubuntu] Copying and Pasting Commands in Terminal Question



mikodo
August 18th, 2009, 10:19 PM
Hello everyone,

Following a guide by aysiu on creating a separate home partition in Ubuntu, below is directed:

************************************************** ***********************

names to the ones appropriate for your setup):
sudo mkdir /old
sudo mount -t ext3 /dev/sda1 /old
sudo mkdir /new
sudo mount -t ext3 /dev/sda3 /new

Now we're going to back up the /home directory on the old partition and move it to the new partition:
cd /old/home
find . -depth -print0 | cpio --null --sparse -pvd /new/
sudo mv /old/home /old/home_backup
sudo mkdir /old/home

Yes, one of those lines looks really complicated—so please copy and paste the commands into the terminal instead of retyping them.

************************************************** ************************

Question: Does each line need to be pasted and entered independent of the others, one line at a time, or can each group of lines, (4 each), be pasted and entered in terminal together all at once?

I am guessing each line, one at a time, must be entered in terminal, before the next line.

Thank you.

Schendje
August 18th, 2009, 10:20 PM
You can do them all at once, it'll do it in that order. :)

Troll_the_Great
August 18th, 2009, 10:30 PM
I am (almost) sure you should copy and paste them one by one...

mikodo
August 18th, 2009, 10:34 PM
hmm... Two different responses!

whitethorn
August 18th, 2009, 10:35 PM
I suggest you do each command / line seperately, if something doesn't work at least you'll know how far you got. Since you are mounting partitions it might be a good idea to make sure the numbers (sda1,2,3) match with those on your pc.

mikodo
August 18th, 2009, 10:39 PM
I suggest you do each command / line seperately, if something doesn't work at least you'll know how far you got. Since you are mounting partitions it might be a good idea to make sure the numbers (sda1,2,3) match with those on your pc.


I see, to be careful and be able to diagnose problems, one line can better see difficulties as commands progress.

And yes, I will follow your advice in being careful with the numbers, as you also pointed out.

Thank you everyone.