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

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.

Related

ls command tells me there's no such file or directory when the file does exist? [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 6 months ago.
Improve this question
when i enter
cd prctcfldr
it tells me that i'm in the directory
~/prctcfldr$
but when i enter
ls prctcfldr
it tells me that there is no such file or directory
ls: cannot access 'prctcfldr': No such file or directory
this is happening with all my other directories including Desktop, which is really confusing since this error has not happened with my directories before, and i havent made any changes to them between now and the last time. i know the folder exists because i can see it and open it from the actual homescreen. i'm new to the linux command line and ive been looking for solutions to this error for a little while.
does anybody have a solution?
cd ..
This command moves above one directory and then you can ls <folder name>
Since you are already inside the folder when you ls again the folder name, it'll show directory does not exist.

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.

what is ".filename" in the linux and how to open that 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 6 years ago.
Improve this question
I see these files many times when I use the command ls -a . But I want to open that file and access that file. What material contain that file. How it can be done ?
in linux all files whose name starts with . is hidden files.
these files are not shown when you use 'ls', but doing 'ls -a' shows these hidden files too.
if you execute ls -a on your home directory you will see lot of such files. (.profile .bashrc .history etc)
such filenames are given to config files. so most of these files will be in a text format..and may be in other format depending on to which application it belongs to.
to know the format use the following command file filename
to see text files cat filename

Hidden folder showing ~lock 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
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.

About basic commands in bash (cp, cd,..) [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 8 years ago.
Improve this question
I am trying to learn basic commands in the terminal. I have a couple of quick questions. I know that to make a file and place it in a specific folder, one needs to create the directory and then use touch to create an empty file and place it there by mv:
mkdir folder/sub
touch file.txt
mv file.txt folder/sub
Could we somehow chain these things together and use touch to create a file and place it in a specific directory in just one line?
and then if I am in a sub-directory, in order to get back from there (say: folder/sub) to my home, either of these three commands would work (cd, cd -, cd ..) I am not sure I get the differences among the three. I get that cd .. takes you back one step up but the other two seem to work exactly the same.
and let's say I have already a text file in my home directory named file.txt. If I write this in shell it overrides that existing file:
cp folder/sub/file.txt ~/
How would I go about this if I wanted to keep both files?
You can pass a relative or absolute path in any folder to and command, including touch (although the folder must exist):
touch folder/sub.file.txt
cd - switches to the folder you were last in (like a "Back" button)
. means the current directory
.. means the parent directory

Resources