General :: Move Files Between File Systems?

Apr 29, 2011

I have to move files between two file systems /inst and /inst2.When I perform 'cp -a /inst /inst2' it copies everything even hidden files and preserves access permissions.But when I perform 'mv /inst /inst2' it also preserves access perms and moves everything besides hidden files.Questions :hy is so ?What tool to use when moving file systems from one fs to another (rsync) ?

View 8 Replies


ADVERTISEMENT

Ubuntu :: Copy And Move Files Over Two Systems All The Time?

May 14, 2010

I have to copy and move files over two systems all the time. So when I am on system 1, I simply use the command

Code:
$scp * system2:/some_directory

There are many files in PWD of system1 with different extensions. Of all the files in the PWD on system1, I don't need a file called *residual.dat as it it particularly big and wastes a lot of time copying.How can I make a shortcut so that every time I do scp, it copies everything but the *residual.dat file?

View 1 Replies View Related

General :: Shell Script For Identifying The File And Zip All Files, Move The Files To Target Dir?

May 7, 2011

1. Every Sunday2. Find all files older than 1 day3. Gzip these file4. Tar up the gzipped files into one tar file.5. Name the tarball with a date stamp indicating what day it was created, so we know that week's files are in the file

View 3 Replies View Related

General :: Move 1 File To A Directory Containing 3 Million Files?

Jul 25, 2011

the system currently have a directory with all the invalid files. how bad is it to move a single file to a directory containing 3 million files already?

View 2 Replies View Related

General :: BASH Script To Move Files/folders To Either The .Trash File Or To Another Direcotry?

Dec 2, 2010

I am looking for a script/advice or guidance on how to write a script so that when I use the 'del' command it removes/sends the files/folders to a I specify for example 'dustbin

View 13 Replies View Related

General :: Check For New Files Added Onto A Systems?

Aug 31, 2009

If there are patches being done on a linux system, what commands i could use for showing out the files that have been newly added?

View 1 Replies View Related

General :: Creating A Script To Move Or Copy Files Into Multiple Directories Below The Files?

Aug 25, 2009

How can you create a script to move or copy files from a main directory into multiple directories below the main directory.

View 7 Replies View Related

General :: Can Not Move Files To Root Files In Kubuntu 9.04?

Aug 18, 2009

Being relatively new both to Linux and this forum, i am sorry if i make a post that already is, evn though i couldn`t find it.My problem is i can`t move downloaded files over to root filesystem, i have downloaded and unpacked them to files. to change it`s looks and downloaded a skin, i open root, go to usr---> amsn ---> share --> skins, now i am to copy the file of the skin over to the root directory, butI also tried alt+f2, writing sudo conqueror, as an advice i got, but there was noe difference.

View 14 Replies View Related

General :: Count Files In Dir Then Move That Many Files In A Script?

Dec 17, 2009

what I got - from a crontab run a script (understand that part), this script needs to count the amount of files in /outgoing/, then take 30 less that number, and move that many files from /readycalls/. I need to keep the asterisk outgoing que full of .call files with out having to many in there at any given time.

View 3 Replies View Related

General :: Windows - Change Permissions On /var/www To Copy Files From Other Systems

Jul 16, 2011

I have a NTFS drive mounted at /media/bigbrother as my user. I have no trouble reading or writing to files here. I just created a link to /var/www using: ln -s /var/www /media/bigbrother/

The link is there however, I can't even open the folder. How should I go about getting access. So that I'm able to copy files from other systems on the network.

View 1 Replies View Related

General :: Why Are File Systems Mountable And Unmountable

Oct 5, 2010

I'm familiar with the software and hierarchy of the mount command but I can't find any info on why it is needed or preferred. What are the physical aspects of it? What is the burden of having files accessible all the time?

View 14 Replies View Related

General :: Hide File Systems From User

Jul 23, 2009

I was wondering if it was possible to hide the File Systems from a user. So when then browse through folders or choose to save something the default folder is their "home" folder. I am using SAM Linux distribution and don't want my users to be able to screw anything up! I use thunar as my file manager and was just wondering if it is possible?

View 12 Replies View Related

General :: Copy Zipped (my.zip) Files From Windows To Systems And Unzip Them Without Any Corruption

Jun 11, 2010

Is it possible to copy zipped (my.zip) files from Windows systems to Linux systems and unzip them without any corruption.

I know the command unzip is available, but I want to know if this copying from WIndows to Linux could lead to file corruption.

View 7 Replies View Related

General :: File System Is Best For USB Drives For Booting Systems?

Sep 29, 2010

iv been looking around at the different Linux systems particularity the smaller ones such as DSL, Slax and Puppy Linux. However i need a Linux distribution that doesn't have a GUI desktop environment just the plain old terminal to work on. The system would have to be able to boot from a USB drive also. If anyone knows a systems that fits those requirements or something else related please post. Also what file system is best for USB drives for booting systems?

View 4 Replies View Related

General :: Windows - Why Do Operating Systems Have File Size Limits

Aug 13, 2010

What limits a file to have some maximum size depending on the Operating System? I do not exactly understand this. If you have the storage space, what else can be the limitation? You should be able to store as much data as you want the way you want (even in a single file) unless you run out of storage space.

View 5 Replies View Related

General :: Filesystems - Best File-systems / Mount-configuration For Each Folder On GNU?

Apr 10, 2011

One of the good points of linux is that is easy to customize the partitioning scheme of the disk and put each directory (/home, /var, etc) in diferent partitions and/or diferent disk. Then we can use diferen file system/configurations for each of them for make them better. xamples:

noatime is a mount option to not write access time on the files. data=writeback is an option to layz write metadata on new files. ext3/4 has journaling that make the partition more secure in case of a crash. bigger blocks make the partition waste more space, but make it faster to read and may become more fragmented. (not sure) Then: What are the best filesystem/configurations for each directory? Note: given the answer of Patches, will only discuss /, /home and /var only.

/var -> It's modified constantly, it write logs, cache, temporal, etc.
/home -> stores important files.
/-> stores everything else (/etc and /usr should be here)

View 1 Replies View Related

General :: Windows - Find In-depth Information On Various File Systems?

Apr 28, 2011

Back in the old days of PC-DOS 3.1, computers are much simpler than today's. I can learn a lot of how File System works with tools like PCTools, Norton Disk Doctor, and [URL]. Have been working exclusive in corporate database application area for over a decade, my knowledge of how these stuff work is diminishing. Standard-clean OS (Windows, Linux) installation is all I can do now. And it starts to cause me many data-loss troubles, when I have to perform something that I don't have much insight, such as install and remove peer linux os or move and resize partitions.

I'm looking for books, web resources, or communities where I can educate myself on how various file system works, for which I can have in-depth answer to questions such as:

How to remove ubuntu and grub2 ? (I recently did that, but with a lot of frustration when I was not really sure what I was doing and confront with some scary error message like "Missing BootMgr" What kind of disk-partitioning operation can be performed non-destructively, and why ? What is Active partition ? Primary Parition ? Extended Partition ? How it stored on the disk. There are many free partitioning tools out there, which one is safe to used ? NTFS, Ext3, Ext4, .. What the differences ? How to choose it wisely.

View 2 Replies View Related

General :: Using The /proc File Systems To Increase Performance And Functionality?

Jul 5, 2010

I'm interesting in knowing what processes could be altered to improve performance and functionality on my system. And which process may be the best one to alter

View 2 Replies View Related

General :: Preventing Windows Version Of Vim From Destroying Other File Systems Permissions

Aug 30, 2010

I am currently using the windows version of gVim to edit source files on a networked drive mapped to a linux system, as well as local files created in cygwin.

The problem is that the windows version of gVim destroys the original file permissions on the respective systems. IE: Files on cygwin are defaulted to 077. When edited by the windows version of vim they are saved as 777.This problem doesn't even occur when using ms-notepad (as well as all other editors I've tried), so I am not quite sure why gVim does it.

A possible solution would be to use cygwin's gVim for everything, but that's rather cumbersome as it requires running an x11 environment to support it, and it causes some problems when running some commands from within gVim (or vim for that matter) when working on the networked drive.

Any ideas how I might be able to maintain the existing file permissions?

This morning while on a different machine the problem with cygwin did not occur. Cygwin & gVim were the same version, however the other machine is running WinXP while the machine the problem is occurring on runs Win7.

View 1 Replies View Related

General :: Can Switching File Systems Affect Email Backups And Other Data?

Nov 27, 2010

A while back I installed Dreamlinux 3.5 Gnome edition using ext2. When I attempted to use the email address books I imported from the Dreamlinux3.5 XFCE edition, which had been ext3, I discovered that none of the email addresses could be mailed to. I had to manually type in the addresses.

When I reinstalled Dreamlinux 3.5 Gnome using ext3, the same backup files that did not work in ext2 now work just fine. The question is, was this a "broken data" problem caused by the switch to ext2 file system or something else? Has anyone else experienced this?

The mail program is Thunderbird.

View 2 Replies View Related

General :: Move Files According To Permissions Set

Sep 6, 2010

I have a directory with a bunch of scripts and other random files. I want to move the files with the executable flag set to another folder en masse (or, if it's easier, the ones without the x flag). Is there an easy way?

View 1 Replies View Related

General :: Move Files In A Folder If It Is Not In Use?

Jun 24, 2011

In my bash script I need to move files in a folder if it is not in use.

Code:
for entry in `ls /root/shared_storage/input`; do
echo $entry
run=`lsof /root/shared_storage/input/$entry`
ru=${run:0:5}
echo $entry
if [ "$ru" == "" ]; then
........
It worked fine sometimes but sometimes it just get stuck at lsof. Is there any other way that I can use here to check if the $entry is using some other process?

View 10 Replies View Related

General :: Ubuntu Live Disk Not Recognizing Internal And External Drive File Systems?

Jan 6, 2010

Im using it in an attempt to backup all of the files off of my dead Windows xp Computer. Right now I am using the 9.10 live disk of Ubuntu and cannot get the program to recognize what kind of file system my internal hard drive is using. (A western digital 320 GB hard drive with partition 1 in NTFS and part2 in FAT32) I would like to be able to back up this drive onto my 1 TB Western Digital external hard drive that is also in ntfs.

Now here comes the wierd part, it won't read or recognize my interal and external hard drives that run those file systems but it will recognize and allow me to read, edit, and access all of the ntfs hard drives on my home network. I did some lurking and tried a tutorial for creating a mount point and on how to force mount a disk, but neither of my disks would show up in Places/Computer. So then I checked the /etc/fstab file and is says,

aufs / aufs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0

Which I think means that it says I have no hard drives installed or connected to the computer. Yet when I go into Disk Utility it tells me the disk is there and asks if I want to format the disk into ntfs...

View 10 Replies View Related

General :: Move Files To Another Directory Using A Cron Job?

Sep 29, 2009

I have a php script in cron directory that generates 5 textfiles, after the files are generated, I want to create a script that will move the 5 text fiels to anoher folder name "web".

View 2 Replies View Related

General :: Have A List Of Files, Move Them Using One Command?

Nov 2, 2010

I have run a command which finds a lot of files based on some search criteria. It returns the files like so:

./somepath/somepath/file.something
./asdf/asdf/s.php
./etc/a.php
./a/b/c/d/e/f/g.jpg

So I was wondering, if I capture this output into a file (ie. one file per line), can anyone help me write a command which iterates through the file and moves the files one by one to a specified directory?

View 3 Replies View Related

General :: Move All Files And Folders Into A New Directory?

Jan 25, 2011

Unix - In Linux, how do I move all files and folders into a new directory?

View 4 Replies View Related

General :: Files Don't Move Back To /var/log And Keep Getting Renamed?

Mar 15, 2010

I have this script that I use to find log files in the /var/log directory that are 2 days old, move them to /var/log/tmp, rename them to the system date.filename and move them back to /var/log. Everything seems to work as planned, except that the files don't get moved out of temp, and they keep getting rename. This leads to very long filenames such as:

2010-02-22.user_040.2010-03-05.user_040.2010-03-07.user_040.gz

What is it about this script that isn't moving it back to /var/log? Also, is there a better way of doing this than what I'm doing? Basically, I'm just trying to set up an audit trail on some of the files in /var/log, so that at the end of the month I can tar them, and then have our syslog server pick up the one giant monthly log.

Code:
# Create variables.
dir="/var/log"
tmp="$dir/tmp"
hostname="$(uname -n)"

[Code].....

View 8 Replies View Related

General :: Dolphin Can't Move Files To Trash?

Jul 12, 2011

I have Ubuntu 10.l0 installed on my laptop. I recently install the KDE desktop from the Software Center. Today, I noticed something strange. I tried to move a file to the trash when I got this error message: "The trash has reached its maximum size! Cleanup the trash manually." I don't have any files in the trash. I went back to Gnome, and was able to delete the file. I opened up Dolphin while still in Gnome, and couldn't delete anything, so I know that this isn't a KDE problem

View 5 Replies View Related

General :: Parse A Textfile To Move Some Files?

Mar 9, 2010

I use avg free as antivirus scanner. I looked some time for a scanner to scan and remove viruses. Problem is avg 8.5 will only detect viruses, not remove them...I use a oneliner looking like this:

Code:
/usr/bin/avgscan / -x /mnt -x /dev --heur --ignerrors -r /var/log/"scanlog"`eval date +%Y%m%d`".txt"

[code]...

View 5 Replies View Related

General :: Can't Rename/move Files From OSX That Were Copied From NTFS

Jun 29, 2010

I recently had data recovered and it was sent back to me on what I think is an NTFS drive. I copied all the files over to a file share I have on a Linux box, that's ext4. Now I have that share mounted on my OSX machine, and I can't move or rename most of the files. However, in a couple cases I was able to rename a folder after the third try. Another time I was able to rename a folder once, but not again. All the permissions are showing up the same on the command-line -- I can't see any differences between the permissions on any of the files/folders. Note that I can create new folders and add files no problem, and then rename and move those all I want.

View 5 Replies View Related







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