Ubuntu :: Copying Contents Through Ssh?

Jun 30, 2011

I want to copy the contents of a directory through ssh. The problem I'm having is that I can use the cp -r terminal function, but that would cause the directory itself to also be copied. I just simply want whats inside to be copied to another directory. Because of the way I have my server laid out, I would have to copy the entire directory, then copy each element one by one inside that directory into the specified folder. This is really tedious. So, is there a way I can just copy its contents? I was thinking of zipping it, the unzipping it, but when you extract, it once again just creates a new directory, not the contents inside.

If this is confusing, this is what I'm trying to do:
Directory: ../random/
Currently after scp -r:

[code]...

View 9 Replies


ADVERTISEMENT

Ubuntu :: Copying Contents Of /home Failed

Feb 7, 2011

I tried to use cp -r from root to copy the contents of /home to a different partition, but nothing got moved.

Here is my situation: I am maintaining a "public" (family) computer. On this computer I have a separate partition called "Family" that is a samba share for everyone on the network. Also on this computer I have the default /home directory.

Ideally, all files should be saved on the "family" share. The problem is that the home directory is called "family" (because the user is "family") and the share is also "family." That's a little too confusing for everyone.

So I'd like to copy everything to the share, and set that as the new home directory, so that all files by default are saved on the share, and can be accessed by everyone on our network.

What happened is that I first tried to set up the share as the home directory by following an ibm tutorial [URL]. Just after pressing enter on "cp -ax", I realized that the -ax might mean I was going to lose all the files in the current destination. The file transfer process took forever (keeping me biting my nails to see if I had really lost everything in the drive), but in the end the screen went blank, and the HD light stopped blinking, so I restarted, and everything was there. Completely unchanged, and not copied, either.

So I went back and copied it with cp -r. Same thing. Took a few minutes, but when all was said and done, nothing was changed.

View 4 Replies View Related

Debian :: Contents Of Directory Gone After Accidentally Copying Symlin / Fix It?

Jan 17, 2011

While doing some tidying up, in the process of moving some directories off my temporary mint kde desktop, I lost the contents of an important data directory on my data partition. Just to try to explain a bit of background, I have been using mint kde4 as a stopgap measure until I got squeeze working again ( i have been having graphics problems) and had a symlink on the desktop to a /data directory on my data partition. As I just got squeeze working again, I was moving stuff that had accumulated on the mint desktop to a directory named /2010 in the /data directory on the data partition, but accidently copied/pasted the /data symlink along with the 3 other directories I had highlighted. So effectively, I was accidentally copying the /data symlink to /data/2010. For reasons I don't understand, the whole of the contents of the /data directory disappeared, and it is now totally empty. I thought, that cannot happen can it? So I opened gparted and sure enough, that partition, which previously had about 70 gb of data in the /data directory was empty apart from /lost+found and an odd text file I had stored there. The /data directory is still there, but empty. I shut down Mint and booted into squeeze, thinking it must be a mistake, but gparted shows it has all gone. How on earth can this happen? I have some of the data backed up but a fair bit of the recent stuff isn't, so I need to recover it. I hoped the file system check that happened when I booted back into squeeze would maybe repair anything that got broke, but it showed as clean during boot.

View 5 Replies View Related

Red Hat / Fedora :: RAID And Disk Transfer For Copying Contents

May 5, 2011

I had used DELL 1950 with 300 GB raid disk. Now, I purchased Dell 2950 with 450 GB (6 disk - 3 pairs of raid). I wanted to pull out old 300 GB from 1950 and put it in 2950 (temporarily) to copy all contents to the new system. How do I know which HDDs I need to pull out from 2950 so that I can replace them with 300 GB HDD to mount. I do not know how raid setup (I know unix alone - not raid commands). Is this possible? How to do it?

View 5 Replies View Related

General :: Copy Folder Hierarchy / Recreate All Folders From One Directory Without Copying Over Contents Of Folder?

Jul 2, 2010

Is there a way to recreate all the folders from one directory to another without copying over the contents of the folder? I've been trying to do something like this,

Code:for i in `ls $X`; do mkdir $PATH/$i; doneUnfortunately $i is deliminated by whitespaces in the filenames and not the actual folders.

$X contains only other folders so I dont have to worry about regular files but any kind of more "advanced" solution would work.

View 1 Replies View Related

Ubuntu :: CD/DVD Contents SAME For Different CDs?

Jan 27, 2011

Ubuntu 10.10, when I Open My_Data_Disk to see the CD contents, I get the SAME contents of the FIRST CD/DVD I opened; that is, the contents do NOT change when I insert other CDs, even after clicking Reload, etc.

View 2 Replies View Related

Ubuntu :: Can't View DVD Contents

Dec 8, 2010

I backed up about 19GB of my Web Server today compressed into a .tar.gz. I then split these files into 4300MB chunks (approx 4.2GB). I then used k3b to write 2 parts of the archive these to a Dual Layer DVD. The burn went fine but I cannot seem to mount said DVD. I tried the following;

Code:
matt@matt-u:/media$ sudo mount -t udf /dev/sr0 /media/cd
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
missing codepage or helper program, or other error

[Code]....

View 2 Replies View Related

Ubuntu Installation :: Can't See Contents In 11.04

May 2, 2011

I just upgraded my ubuntu from 10.10 to 11.04 update update manager, it seems everything works fine but there are times when I open such files and no veel pdf document content, also open something in gedit and not let Verel content, I have to restart the pc and there if I can see the contents, my pc is a compaq v3000 laptop with 2 gb of ram

View 1 Replies View Related

Ubuntu :: How To EDIT .iso Contents

Jun 30, 2011

I have a question - what's the best way to edit the contents of an .iso image ?Yes, I know how to mount it and navigate through files and folders. But it's read-only. Mounting with "rw" option also doesn't help.I've heard about 1) mounting, 2) coping everything to a separate directory 3) editing some files, 4) making a new .iso image

View 4 Replies View Related

General :: Ubuntu - Can't See Contents Of File

Jul 29, 2010

In Ubuntu 10.04, there is a certain file that appears highlighted in terminal. When I try to cat the file, it says there is no such file or directory. How can I see what's in this file? Is this a symbolic link?

View 1 Replies View Related

Ubuntu :: Save A Keyring Contents?

Jan 10, 2010

I want to export of the current default keyring (wireless network passwords etc.) and import it to another ubuntu 9.10 release on another computer but I can't seem to find much on the subject. Does anyone know how to do this?

View 1 Replies View Related

Ubuntu :: Print Out The Contents Of A File?

Feb 24, 2010

how do I print out the contents of a file?

View 4 Replies View Related

Ubuntu :: How To Delete The Contents Of This File.

Mar 23, 2010

/root/.local/share/Trash/files/I have a tar backup file in there and can't get rid of it. I've tried from root with Nautilus, the files disappear for a couple of seconds and then reappear.

View 7 Replies View Related

Ubuntu :: Way To View The Contents Of A .dsk File?

Apr 30, 2010

EDIT:SOlved, I'm trying to figure out how to delete this

View 1 Replies View Related

Ubuntu :: /dev/sdc1 Displaying / Contents After 1 Day?

May 11, 2010

I was running 9.10-64, upgraded from 9.04 on a 160GB separate boot drive with a 1TB drive for storage. I had mdadm software RAID on 3 500GB drives. I copied off the contents of the md0 RAID device, formatted from ext3 to ext4, then copied it all back. I operated for several weeks this way with enhanced performance and no issues.note: All drives are on MB SATA-II.I wiped out everything and reloaded the 160GB drive with 10.04-64. I removed dmraid and set up mdadm as before with no immediate problems.

The next day, when I pulled up the contents of the 1TB drive (mapped to /1000), it displayed the contents of the root instead. Curious, I attempted to tunnel down to the /1000 folder from within its own listing of /, and saw no files listed. I proceeded to delete the files in the /1000 folder, whereupon I found that my system became unstable. I must have somehow been deleting files from the root itself.I reloaded again. To check if the SATA connector to the 1TB drive may be somehow suddenly faulty, I reordered the connectors and set up the boot priority in the BIOS to match the new configuration. The next morning, I was once again able to see the contents of / when ls'ing /1000. I carefully checked the entry in fstab, the fdisk -l output, and made sure that the directory wasn't somehow showing as a link.

For the next attempt I decided to take ext4 and mdadm completely out of the equation, hoping it was a bug with some combination of the two under the new kernel or something else which could be corrected by replacing the software RAID with a physical controller at a later date. Instead of RAID, I simply formatted each of the 500's as ext3 and mapped them to /500-1 through /500-3 respectively. However, after a day of normal operation, I am now able to see the contents of / when I ls /500-3. The other 4 drives appear to continue operating normally.I have been unable to pull up a similar post prior to creating this one. Perhaps I don't know how to properly search for this issue. If anyone has seen something similar, please link me to the solution.

View 2 Replies View Related

Ubuntu :: Cannot See The Contents Of The Trash Folder ?

Jul 5, 2010

When try recover a file from thash folder, i cant see the contents, but, when make properties to the folder, show 47 files on the trash folder, and the docklets of docky, also show files (41 files). Ubuntu Lucid 10.04

View 4 Replies View Related

Ubuntu :: Determine The Contents Of A Package?

Jul 24, 2010

I am very experienced with versions of RedHat, including most recently Fedora. Under these

rpm =ql xxxx

will tell me the files which are part of package xxxx.

Recently, I started using ubuntu.

I haven't been able to figure out what the corresponding command(s) are for Ubunt

View 2 Replies View Related

Ubuntu :: Extract The Files And Contents Out Of A .pkg?

Jul 31, 2010

Does anyone know how to extract the files and contents out of a .pkg, A sony package file to be precise.

View 9 Replies View Related

Ubuntu :: Delete #SharedObjects Contents?

Oct 25, 2010

Instead of using the Firefox Better Privacy addon or the Macromedia website to manage Flash Cookies (LSO's), I would just like to periodically, delete the ~/.macromedia/Flash_Player/#SharedObjects directory.

View 1 Replies View Related

Ubuntu :: Identifying CD Contents Without Booting With It?

Nov 6, 2010

So I have a bunch of CDs I have burnt over the past year or two, and only problem is, I would burn them, use it and forget about it. I never bothered labelling it. Now, I want to label them appropriately. Is there any way I can find out the following just looking at the CD contents-

1. Distribution - lucid / karmic / etc
2. Architecture - amd64 or i386
3. Type - server, desktop, alternate etc

I know if I boot into the machine from the CD drive, I can find out, but I prefer not having to do that

View 1 Replies View Related

Ubuntu :: List Folder Contents ?

Jul 20, 2011

I know that you can use ls to list the files in a folder, but is there anyway to list the contents of the other folder? Like, say I have a folder labelled "Records", and inside is 12 folders, one for each month. Is there any way to list the contents of the 12 subfolders without just going into each one with cd and using ls?

View 3 Replies View Related

Ubuntu :: MD5 Checksum Tarball Contents?

Jul 22, 2011

I have a large tarball which is bz2 compressed, and I would like to get a md5 sum of the files contained in it, as I have a separate directory on another server containing what I think are the same files. I want to check to see if the tarballs files are the same as the uncompressed files on the remote server. The files are big 10gb+ so I was wondering if there was a quick way without having to uncompress them all and then md5 them.

View 4 Replies View Related

Ubuntu :: Touch Contents Into A File?

Sep 1, 2011

I know that I can do something along the lines of

Code:
touch /var/www/index.html | echo "echo some contents" >> /var/www/index.html
but would like to do this without having to specify the directory again with echo, and maybe even use linebreaks / tabs on the echo in. Anyone know a neat one liner?

View 6 Replies View Related

Ubuntu :: Cataloging The Contents Of Workshop?

Sep 1, 2011

i would like some way of cataloging the contents of my workshop , i would like a picture of each item a location ref and cost to replace also serial number , software that can do this on ubuntu

View 1 Replies View Related

Ubuntu :: 9.04 , Changing Hdd And Wants Move Contents To New Hdd?

Jan 16, 2010

I need to clone Ubuntu HDD from a 80GB to 20GB and the content , desktop should stay the same as they are now or is possible to re-size the Ubuntu partitions after installation

View 2 Replies View Related

Ubuntu :: Bash: List Contents Of Folders

Dec 1, 2009

how I sould do the following?

I have a folder called "Downloads" and among its contents there are a bunch of files with "flv" extension.

If I do

Code:
ls path/to/Downloads/*flv
I will get something like this:

[Code]....

(The reason I want something like that has to do with a small script I'm trying to write).

View 5 Replies View Related

Ubuntu :: Could Not Access Contents Of A Mounted Partition?

Jan 4, 2010

I had my hard disk partitioned as below:-

Size Label Mount point File system
52 GB Multimedia /MM ntfs
52 GB Backup /ABackup ntfs
52 GB Extras /Extras ext4
27 GB root / ext4
60 GB home /home ext4

The problem is that I cannot access the /MM and contents. I tried Properties > Permissions and changed applied the changes to subfolders and contents too. Now I can access /MM but not the contents. All are marked with a lock logo.There are numerous folders/files.Changing the permissions individually is a hectic work.possible to do it in a command line/script?

View 4 Replies View Related

Ubuntu :: Show Contents While Resizing A Window?

Jan 24, 2010

Anyone know the trick to getting Ubuntu to show the contents of a window while I resize it? It WAS doing this until I loaded up the drivers for my Nividia Quador 135M (works great!) I'm very happy with my Ubuntu 9.10, I even have all the bouncy window effects running.

Still, I would love get rid of the "faded blue resizing box" and see the contents instead.

View 6 Replies View Related

Ubuntu Servers :: Contents Of LVM Volume Disappeared?

Mar 25, 2010

I have an LVM group containing three 500GB drives in my NAS/home server. Last week, the contents of this group(ext4) disappeared with no apparent explanation.

I've been looking around for solutions, and here's what I've tried:Restoring the LVM configuration using vgcfgrestore with the most recent file from /etc/lvm/backup/. This restored just a few of the folders. Run fsck on the group. Lots of errors, all fixed, but nothing more appears. Run badblocks on each of the disks, no errors found.

It seems there is nothing wrong with the drives physically, or with the software configuration, so where have the files gone?

Even if I can't restore the full volume, if I could just grab what I can from the drives.

View 2 Replies View Related

Ubuntu :: 9.10 Box - Getting Flicker While Viewing Flash Contents?

Apr 27, 2010

Anyone using flash with blogtv? I've got a Ubuntu 9.10 box with a nvidia 9400gt card running flash and have run into some weirdness. I get alot of flicker when viewing flash content on sites like blogTV. Also, cannot get my webcam going in blogtv. Webcam is a webcam pro 9000 and works flawless. The problem is adobe flash. I have researched and know that there are problems with flash and linux but whats interesting is that I also run a fedora 11 box and blogtv works fine. The video card in the fedora box is a nvidia 8400 and running flash.

On the Ubuntu box when you go to broadcast you get the flash permissions (allow blogtv permissions on camera) but the buttons do not work. It pretty much locks up in the flash widow only. Also, Viewing content on the site has a lot of flicker. Other sites do not have this flicker. Seems strange that my fedora box works with no problems but the Ubuntu box doesnt. Today Im going to try the beta flash (libflashplayer.so) from adobe version 10.1.51.66 and see what that produces.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved