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) ?
This has been bugging me since I upgraded to 11.4. First I noticed that most of the time when a file is copied from an application (say, downloaded from Firefox) in to a directory that Konqueror does not show the new file until I hit "Reload".OK, I could live with that, annoying as it is. Why it can't recognize that a new file has been added to the directory since the last display refresh when I switch to that window I don't know, but fine, whatever.
Then I installed Firefox 4.0 - and now frequently when I open the "Save As" file browse dialog, it doesn't see any of the files recently added either. I put in a complaint to Mozilla, but apparently only ONE other person on the planet has ever seen this happen. But it was never the case before, either in earlier Firefox or earlier openSUSE releases. I was always able to see the files I previously saved to that folder when saving a new one.
And today it happened in Kaffeine which I don't remember ever seeing before. I opened the "Open File" dialog and it couldn't see a video file I had just downloaded. When I closed Kaffeine and then restarted it, it could see it.Is this something that has been ongoing or is it new? I can't find anything via Google Search to explain it. Is there some setting somewhere that needs to be tweaked? Is it a file system problem?
I was able to synch my folders to Ubuntu One.However, when I add any new files to one of the synched folders, it is not synching up to Ubuntu One. I've tried re-synching the folder where I place the file and all I get is the circular arrow with the ! in it. I've also tried disconnecting and connecting in the Device tab on "Ubuntu One Preferences". Am I missing a procedure here or is this a bug? I would hope that adding, removing, or updating files would automatically be synched.
I'm using rsync to create a mirror of the data files on our main server every day. I've looked at the man page, and can't see it; can I get a listing of the files that have been changed on or added to the mirror when it's completed? Can it just log what it's doing to a file?
write a script that scans a folder to see which files are corrupt and if they are move them to another folder.All files have in it's filename CRC32 hash that I want to check if it's correct.Something like this:
Code: Filename: . . . . .filename S01.E01 [CRC32Sum].mkv Should have CRC: . CRC32Sum [code]...
I've just upgraded my serv from fedora8 to fedora12 and got a problem. The httpd and vsftpd add a junk in the beginning of html files. Png, tar and other files are ok. When I make a request to localhost everything is ok.
Code: #telnet localhost 80 GET /1.html <html> </html> but from any other computer.
Code: ..... But this is not an apache problem. When I dl html files from ftp I got the same problem. Iptables is swithed off.
I downloaded an ISO of some nes roms and used the archive manager to extract the files. It extracted them but it added a ;1 to the end of the extension. I don't want to go through 3500+ rom files and delete the added ;1 to the nes extension. How can I prevent this in the future?
I have backup_server and application_server.backup_server has directory AAA. I need to check from application serverthat is there any new files created today in the AAA dirctory. if yes, all files were created today or partial files?.
I have an Ubuntu server in which a file is dumped every hour and a new file for the next hour and the process continues. If there is any problem due to which the creation of file stops then empty files are created every minute till the process is killed & started again. I need help to make a shell script to check if the empty files are being created and then kill the process and start it again.It would be a great help if anyone can help me regarding this.
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?
I'm trying to automate the transfer and processing of files between two systems to help test and compare a new server installation. The workflow is a bit complex but I'm basically modifying a script on server 'A' to push a file to server 'B' as standard input to another script.
But no luck. I've tried it without the port in the server_args parameter, without the '-l' option; I've tried having the server parameter set to 'tcpd' and the call to '/bin/nc' in the server_args too. But no success. Can anyone point out what I'm doing wrong with the config? PS. I've restarted xinetd and server B is listening on port 1112 and accepting connections - but nothing gets piped into the script on server B.
When I run lsof -i I see several instances of httpd, however some are http and some are https. How do I configure my httpd.conf to start only https? I am essentially running copies on port 80. I just want to run all my html pages in 443.
I need to setup my ubuntu pc single nic card ip as 192.168.1.6 for internet and 10.172.170.95 and 188.8.131.52 for my lan and for another network through my 4port DSL modem.So i defined like this.Except addition of last two routes(10.0.0.0/8 & 184.108.40.206/24) everything worked as defined, what is the mistake i did?
I made a software RAID 0. It works fine, but when I add it to fstab and reboot the server, I can't restart the server. Code: # cat /etc/fstab LABEL=/ / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 LABEL=SWAP-sda5 swap swap defaults 0 0 /dev/md0 /vz ext3 defaults 0 0
When I go to rescue mode and delete /dev/md0 from fstab, I can restart, but I get this when I try to mount it again: Code: mount: you must specify the filesystem type
So I try to make it to a ext3 Code: # mkfs.ext3 /dev/md0 mke2fs 1.39 (29-May-2006) mkfs.ext3: Device size reported to be zero. Invalid partition specified, or partition table wasn't reread after running fdisk, due to a modified partition being busy and in use. You may need to reboot to re-read your partition table. #fdisk /dev/md0 Unable to read /dev/md0
I am using Webmin to access a database. I finally acquired a static IP address. After entering it into the allowed host for the PostgreSQL server, I still can't access it through the SQL Manager for postgres in Windows. It doesn't seem to actually make the change. I am the new person managing this database. The old person use to be able to just add an IP address and it would connect. Is there something I am missing that I may need to install?
I have a folder named "logs" which contains log files. I would like to have a bash script or a cron job or something like this which will check the folder continuousy and perform some tasks (for example echo "New file is created") every time a new file with pattern like "Screen.log.***" is created in the folder "logs" Is it possible in Linux?
I have a samba shared folder in my flash disk. Yesterday I installed ubuntu 11.04 and now sharing is not working any more. I do the usual procedure (that worked so far), I right click my folder > sharing options and tick "share this folder" as well as "Allow others to create and delete files in this folder" but I dont get the usual messages asking to add permissions automatically.When I try to mount my folder in another pc with linux, I get permission denied and that the folder is only readable and in another, windows cannot find the network path to my folder.My folder has about 10.000 files. asking to add permissions automaticallyI created another folder on the same flash and when I create share I get the message asking to add permissions automatically but it is not visible either. I even cant see my folder in "my places" > network, so it is not a matter of the mounting command
I just set up a separate monitor, I am running Ubuntu 10.04, I use the nVidia graphics driver, Now the Bars on the top and the bottom of the screen won't appear and can't be used. I rebooted w/ out the second monitor and now it disabled itself. I can't get the terminal option at the login screen. When I rebooted the first time w/ the second screen icon's on the desktop appeared. Now nothing appears, but the background. I opened up my browser (Google Chrome) by my key combinations for those who are wondering how I posted this.