Tag Info

Hot answers tagged

18

The concept you are asking about is called Concurrency and Synchronization control, and refers to a set of techniques to prevent simultaneous (and likely conflicting) changes to a piece of data accessible by multiple processes. the textbook example of the concept is a married couple with a joint debit card, and 1000$ in their account. If they are at ATMs ...


14

The output of the tree command seems to display what you're looking for: . └── photos └── beach ├── 1.jpg -> me_and_dog.jpg └── me_and_dog.jpg Newer versions of the command will even output to HTML, XML or JSON. XML Output: <?xml version="1.0" encoding="UTF-8"?> <tree> <directory name="."> <directory ...


8

There is an MSDN blog describing why Windows behaves as you describe it. First let's mention that what you see is only on NTFS. To test what you said I wrote a small program that writes 40 kB to a file every 5 seconds. The file is kept open between every write. A second program uses FindFirstFileEx to get the current file size. As third I use dir in ...


6

On Windows, a "folder" is a container of "files". They are two different things and one cannot be changed into the other, especially not by just adding .TXT to the name. :) More info: Definition of: files vs. folders is there some keyboard shortcut that could help me to create a file? See this other SU question: Is there a shortcut for creating a ...


3

What is it? Based on the picture I'd say that is disk corruption. Either it's just the file system, or the flash drive itself is broken. Where did it come from? Disk corruption can happen for many reasons. Perhaps you pulled out the drive while it was writing (didn't "Safely Eject" it), or the drive just took too many physical bumps, or ...


3

XFS is the filesystem that originated from SGI and was ported to Linux, it is a journaling filesystem. xFS looks to be a filesystem under development at Berkeley, as such you will not find it in a production operating system, at least not for a while. The name collision is an unfortunate source of confusion. Edit: Removed reference to Berkeley making an ...


2

It's possible to restore a QCOW2 image created using e2image -Q using e2image -r. For example: # e2image -Q /dev/sdb1 image.qcow2 # e2image -r image.qcow2 /dev/sdb2 Note that I tested this with version 1.42.12 of e2fsprogs. As of >= 1.42.9, e2image also supports the -a flag which allows you to include filesystem data in addition to metadata: # ...


2

from google. There's other solutions available also (fschanged, fileschanged, inotify solutions etc): https://gist.github.com/mikesmullin/6401258


2

Turns out the file has an immutable attribute set on it. It is possible to remove the immutable attribute using chattr # chattr -i /usr/share/applications/google-chrome.desktop Now removal is possible # rm /usr/share/applications/google-chrome.desktop # echo $? 0


1

Problems like this can be caused by drivers problems with anti virus software. May be you can solve it with updating your firmware and drivers. To narrow the cause you may try disabling the live scanner for the browser(s). But mostly the filter drivers stay nevertheless loaded and the problems persist. Then you need another anti virus solution. Good luck ...


1

You can use mtree for this. See www.freebsd.org/cgi/man.cgi?query=mtree&sektion=8&manpath=FreeBSD+6.3-RELEASE And code.google.com/p/mtree-port mtree -c It is very versatile.


1

In general, no. You'll need file-system access on the server itself and/or to the audit logs on the server (assuming auditing was set up) to get this information.


1

ctime, mtime, and atime behave differently (see, e.g. here) ctime checks for the inode modification time (this gets changed for instance if you copy an older file to a new directory or disk (which does not change mtime)) mtime checks for the file modification time (which is for instance not updated when copying a file to another location or when unpacking ...


1

This should have been more appropriately posted as a comment to Thomas' answer, but since I cannot do that yet, I post it here. Mixing up the "-z" and "-c" options is probably a "common mistake", because SDelete has changed the behavior of said options over the years. Looking at the below provided references it seems that SDelete first had a "-z" option ...


1

You can just copy the whole directory across. I used to provision machines like this: boot from rescue CD partition drive copy entire filesystem using rsync-over-ssh (!) rerun grub-install to install bootloader run a script to change hostname and a few other settings reboot into new system The (!) is because you need to be slightly careful here with the ...



Only top voted, non community-wiki answers of a minimum length are eligible