Hidden folder showing ~lock file? [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I am just preparing a doc file. i am using LibreOffice in ubuntu.
The name of the file is
WebApplicationRequirements.doc
When i am saving that in a drive, an extra file shows in the hidden file.
The name is
.~lock.WebApplicationRequirements.doc#
When i am pushing that in a remote repository it is including that hidden file. If i delete that fill will it harm the original file. And why it is happening?

As the name suggests, that hidden file is a lock file used internally by LibreOffice. To prevent multiple LibreOffice application instances from writing to the same file at the same time. It's not generally harmful to delete that file. It should get re-created again next time you open that file again in LibreOffice.
You haven't indicated what remote repo system you are using. But also note that most repro systems (e.g. git) have the concept of ignore files which allow you to configure which files to ignore during commit. If your repro system has that you probably want to add a rule to ignore the lock files so that they are not committed/pushed.

Related

How to access the bat file [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed yesterday.
Improve this question
I selected some parts of the video files to download on utorrent. After I finished downloading my interested file, I noticed that it downloaded around 9GB .bat file which is the remaining part of the whole video file (as shown in the picture). Because the software downloaded the extra files as.bat files, please how can I simply add them to the ones I previously downloaded? According to a guide from ChatGPT, I have attempted to create new torrent file and link with the downloaded bat file, although new torrent file was created but nothing seems to work after that.

Why rsync failed to copy all files? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I tried to copy 17171 files, but whatever parameters I use, it always copied 17160 which 11 lost.
But same command for another directory, copied accurately. (16545 files).
I also tried use cp, but also lost 11 files.
When I check the folder with finder, it should be 17171 files there...
rsync -arvz src dst
cp src dst
Above is the command I've tried
There can be a number of issues at play:
One of the more common issues is that the target filename is illegal on the remote system, for example trying to copy a file with a colon : in the filename from UNIX to Windows.
There may also be permission issues reading the files that are not copied, check the permissions here.
Finally, you could try zipping (or taring) the bunch of files into a single file, and transfer just that instead. Typically you'll see the problem when unpacking that file on the remote system.
EDIT: Another thought - are the files that did not copy really-really large, too large to store remotely?
If you rsync with the -P option, it should only re-transfer files that were not copied. It will also print progress, that should give you a better idea of what's not copying.

How to hide a files from Filezilla (or from directory search) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
What are the ways that I can hide files and folders from any directory search ?
For example :
(What I will do)
Access the remote server through putty
Then will show the files inside the folder
(What I WANT to do)
To hide the files inside those folder
(What I tried to do)
I tried to changed the file permission via FileZilla (Doesn't work)
I tried to create a new filter rules via FileZilla (It works but only hides from filezilla)
Thank you for help!
What are the ways that I can hide files and folders from any directory search ?
There is no such thing as "hiding a file".
In Windows you can set the hidden or system flag, but this doesn't actually hide the file, it's just a filter for directory search operations that choose to ignore hidden or system files.
They would be invisible to dir but completely visible to dir /ash
In *nix, files that start with a "." are not shown by default but that's also just a convention. They're not actually hidden and are just suppressed by file operations that don't want to show "dot" files.
ls would not show .mysecretfile but ls -la would show it.

What is Composite Document File V2 Document? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
The community reviewed whether to reopen this question 8 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I need to write a script to find out if a given document is of the format .doc or not.
Iam using Amazon Linux machine. I tried to make use of the linux file command.
For a given doc file the file command outputs the file information as following:
sample_file.doc: Composite Document File V2 Document, No summary info
I found out that file command provides the same file type information for 2003 excel files (.xls).
I want to know what all file types (like doc,xls) come under Composite Document File V2 Document and how I can check if given file is a doc file or not in Amazon Linux 2012 machine?
It is a document format of the Microsoft. I used the guide here to convert my files without issues.
Essentially, you can use the unoconv tool for the conversion to a more friendly format.

Recover deleted Excel file [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
A strange thing happened. A file my father was working in one of his Excel files was corrupted while he was saving it, resulting in the file being deleted.
Of course he didn't delete the file himself. Needless to say he came to me to find a solution.
So after some Googling I came up with a file recovery tool (PC Inspector File Recovery) and I found a deleted file.
The only problem is, the size of that file is less than 1kB, but it is an .xlsx file. Among that file there are also two other .tmp files, one is dating from a minute after the .xlsx-file was last edited, the other 6 hours later from the .xlsx-file. Both files are 171kB in size.
I'm suspecting the data from the original excelfile is in those files (I think the second file, is some copy of the first tmp file).
Does anyone know if I can restore these tmp-files into the original Excel file?
Have you tried just renaming it from .tmp to .xls and seeing if it would open?

Resources