Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-24-2002, 03:15 AM   #1
LQ Newbie
Registered: Jun 2002
Location: singapore
Distribution: redhat
Posts: 3

Rep: Reputation: 0
linux commands


i have a problem about the cut and paste commands in linux..i have two machines both with redhat linux 7.2
they have dfferent users inside. the question is how do i cut and paste a portion of the passwd file in one of the linux box
and paste it to the passwd file of the other linux box without using a gui based editor, i mean i will do it in text mode.
you could email me at
any help please??


Old 07-07-2002, 05:04 AM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
How do you communicate between the 2 boxes? One way would be to cut the text, paste it into a new file, transfer it over, and then paste the new file into the other box.
Old 07-07-2002, 05:27 AM   #3
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
please don't ask for a private email, it's not really polite.

what are you trying to achieve? if you just want to clone users, then you won't achieve it with that, as you'll need the password shadow entries as well.

assuming you are using a network tho it all depends what facilities you have installed. ftp? ssh? nfs? smb? http?
Old 07-07-2002, 11:11 AM   #4
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Wouldn't it be just as fast as to create the users instead of going thru the trouble of cut & paste, transfer and copy.. etc ??


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
linux commands zexter Linux - Newbie 5 11-04-2004 02:37 PM
linux commands help kyborg Linux - Newbie 4 09-28-2004 01:31 AM
Linux commands Delmarc Linux - Newbie 9 10-22-2003 10:39 PM
Linux commands Shikha Linux - General 3 11-27-2002 09:40 AM
Linux Commands AMDPwred Linux - General 23 01-11-2002 12:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration