Show hidden .htaccess files by default
up vote
6
down vote
favorite
I was wondering if there is some method to display .htaccess
files by default in every folder i create it.
Is it possible to exclude .htaccess files from the hidden files?
Maybe from the terminal
hidden-files
add a comment |
up vote
6
down vote
favorite
I was wondering if there is some method to display .htaccess
files by default in every folder i create it.
Is it possible to exclude .htaccess files from the hidden files?
Maybe from the terminal
hidden-files
add a comment |
up vote
6
down vote
favorite
up vote
6
down vote
favorite
I was wondering if there is some method to display .htaccess
files by default in every folder i create it.
Is it possible to exclude .htaccess files from the hidden files?
Maybe from the terminal
hidden-files
I was wondering if there is some method to display .htaccess
files by default in every folder i create it.
Is it possible to exclude .htaccess files from the hidden files?
Maybe from the terminal
hidden-files
hidden-files
asked Oct 4 '11 at 7:30
vitto
233239
233239
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
up vote
13
down vote
You can use Ctrl+H
if you are browsing files using Ubuntu File Browser (Nautilus)
Can we set somehow Nemo or Nautilus, to show hidden files per directory like sorting, for example?
– Vassilis
Jul 9 at 13:26
add a comment |
up vote
7
down vote
You can set an alias to ls
so that it will always list 'dot' files; the syntax varies a bit depending of the shell used; for bash it is:
alias ls='ls -a'
Add the above line to your ~/.bashrc. The drawback is this will list all files starting with a dot, every time.
I'd also recommendalias ls='ls -a --color=auto'
– Irfan434
May 16 at 5:14
add a comment |
up vote
0
down vote
In linux, every file with a "dot" in the start of its name is treated as hidden file. Being hidden is not some property that you can remove from a file, thereby excluding that file from hidden files. If you want to unhide a file, you need to change its name i.e if you want to remove .somefile from hidden files, you rename it to somefile. But I dont think that you can do the same with .htaccess because its a configuration file and if you rename it to htaccess your webserver will still be looking for .htaccess.
So, in short, I don't think it is possible to exclude .htaccess files from hidden files.
add a comment |
up vote
0
down vote
If you wanted only to show the the .htaccess
dot file but keep the rest hidden you could add an alias to your bash configuration file for ls
that uses grep
to filter out the non-htaccess dotfiles.
alias ls='ls -a | grep ".*([.]htaccess$)|.*d{2}:d{2} ([^.].*$)|.*$"'
That regular expression is not working by the way, maybe someone with more experience could write the correct solution. But this method should give you what you want.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f64189%2fshow-hidden-htaccess-files-by-default%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
13
down vote
You can use Ctrl+H
if you are browsing files using Ubuntu File Browser (Nautilus)
Can we set somehow Nemo or Nautilus, to show hidden files per directory like sorting, for example?
– Vassilis
Jul 9 at 13:26
add a comment |
up vote
13
down vote
You can use Ctrl+H
if you are browsing files using Ubuntu File Browser (Nautilus)
Can we set somehow Nemo or Nautilus, to show hidden files per directory like sorting, for example?
– Vassilis
Jul 9 at 13:26
add a comment |
up vote
13
down vote
up vote
13
down vote
You can use Ctrl+H
if you are browsing files using Ubuntu File Browser (Nautilus)
You can use Ctrl+H
if you are browsing files using Ubuntu File Browser (Nautilus)
edited Mar 20 '16 at 14:02
answered Dec 6 '13 at 11:30
Omid
5423820
5423820
Can we set somehow Nemo or Nautilus, to show hidden files per directory like sorting, for example?
– Vassilis
Jul 9 at 13:26
add a comment |
Can we set somehow Nemo or Nautilus, to show hidden files per directory like sorting, for example?
– Vassilis
Jul 9 at 13:26
Can we set somehow Nemo or Nautilus, to show hidden files per directory like sorting, for example?
– Vassilis
Jul 9 at 13:26
Can we set somehow Nemo or Nautilus, to show hidden files per directory like sorting, for example?
– Vassilis
Jul 9 at 13:26
add a comment |
up vote
7
down vote
You can set an alias to ls
so that it will always list 'dot' files; the syntax varies a bit depending of the shell used; for bash it is:
alias ls='ls -a'
Add the above line to your ~/.bashrc. The drawback is this will list all files starting with a dot, every time.
I'd also recommendalias ls='ls -a --color=auto'
– Irfan434
May 16 at 5:14
add a comment |
up vote
7
down vote
You can set an alias to ls
so that it will always list 'dot' files; the syntax varies a bit depending of the shell used; for bash it is:
alias ls='ls -a'
Add the above line to your ~/.bashrc. The drawback is this will list all files starting with a dot, every time.
I'd also recommendalias ls='ls -a --color=auto'
– Irfan434
May 16 at 5:14
add a comment |
up vote
7
down vote
up vote
7
down vote
You can set an alias to ls
so that it will always list 'dot' files; the syntax varies a bit depending of the shell used; for bash it is:
alias ls='ls -a'
Add the above line to your ~/.bashrc. The drawback is this will list all files starting with a dot, every time.
You can set an alias to ls
so that it will always list 'dot' files; the syntax varies a bit depending of the shell used; for bash it is:
alias ls='ls -a'
Add the above line to your ~/.bashrc. The drawback is this will list all files starting with a dot, every time.
answered Oct 4 '11 at 22:28
hggdh
48733
48733
I'd also recommendalias ls='ls -a --color=auto'
– Irfan434
May 16 at 5:14
add a comment |
I'd also recommendalias ls='ls -a --color=auto'
– Irfan434
May 16 at 5:14
I'd also recommend
alias ls='ls -a --color=auto'
– Irfan434
May 16 at 5:14
I'd also recommend
alias ls='ls -a --color=auto'
– Irfan434
May 16 at 5:14
add a comment |
up vote
0
down vote
In linux, every file with a "dot" in the start of its name is treated as hidden file. Being hidden is not some property that you can remove from a file, thereby excluding that file from hidden files. If you want to unhide a file, you need to change its name i.e if you want to remove .somefile from hidden files, you rename it to somefile. But I dont think that you can do the same with .htaccess because its a configuration file and if you rename it to htaccess your webserver will still be looking for .htaccess.
So, in short, I don't think it is possible to exclude .htaccess files from hidden files.
add a comment |
up vote
0
down vote
In linux, every file with a "dot" in the start of its name is treated as hidden file. Being hidden is not some property that you can remove from a file, thereby excluding that file from hidden files. If you want to unhide a file, you need to change its name i.e if you want to remove .somefile from hidden files, you rename it to somefile. But I dont think that you can do the same with .htaccess because its a configuration file and if you rename it to htaccess your webserver will still be looking for .htaccess.
So, in short, I don't think it is possible to exclude .htaccess files from hidden files.
add a comment |
up vote
0
down vote
up vote
0
down vote
In linux, every file with a "dot" in the start of its name is treated as hidden file. Being hidden is not some property that you can remove from a file, thereby excluding that file from hidden files. If you want to unhide a file, you need to change its name i.e if you want to remove .somefile from hidden files, you rename it to somefile. But I dont think that you can do the same with .htaccess because its a configuration file and if you rename it to htaccess your webserver will still be looking for .htaccess.
So, in short, I don't think it is possible to exclude .htaccess files from hidden files.
In linux, every file with a "dot" in the start of its name is treated as hidden file. Being hidden is not some property that you can remove from a file, thereby excluding that file from hidden files. If you want to unhide a file, you need to change its name i.e if you want to remove .somefile from hidden files, you rename it to somefile. But I dont think that you can do the same with .htaccess because its a configuration file and if you rename it to htaccess your webserver will still be looking for .htaccess.
So, in short, I don't think it is possible to exclude .htaccess files from hidden files.
answered Oct 4 '11 at 7:57
binW
9,38263962
9,38263962
add a comment |
add a comment |
up vote
0
down vote
If you wanted only to show the the .htaccess
dot file but keep the rest hidden you could add an alias to your bash configuration file for ls
that uses grep
to filter out the non-htaccess dotfiles.
alias ls='ls -a | grep ".*([.]htaccess$)|.*d{2}:d{2} ([^.].*$)|.*$"'
That regular expression is not working by the way, maybe someone with more experience could write the correct solution. But this method should give you what you want.
add a comment |
up vote
0
down vote
If you wanted only to show the the .htaccess
dot file but keep the rest hidden you could add an alias to your bash configuration file for ls
that uses grep
to filter out the non-htaccess dotfiles.
alias ls='ls -a | grep ".*([.]htaccess$)|.*d{2}:d{2} ([^.].*$)|.*$"'
That regular expression is not working by the way, maybe someone with more experience could write the correct solution. But this method should give you what you want.
add a comment |
up vote
0
down vote
up vote
0
down vote
If you wanted only to show the the .htaccess
dot file but keep the rest hidden you could add an alias to your bash configuration file for ls
that uses grep
to filter out the non-htaccess dotfiles.
alias ls='ls -a | grep ".*([.]htaccess$)|.*d{2}:d{2} ([^.].*$)|.*$"'
That regular expression is not working by the way, maybe someone with more experience could write the correct solution. But this method should give you what you want.
If you wanted only to show the the .htaccess
dot file but keep the rest hidden you could add an alias to your bash configuration file for ls
that uses grep
to filter out the non-htaccess dotfiles.
alias ls='ls -a | grep ".*([.]htaccess$)|.*d{2}:d{2} ([^.].*$)|.*$"'
That regular expression is not working by the way, maybe someone with more experience could write the correct solution. But this method should give you what you want.
answered Jul 4 '15 at 0:31
Erik Berkun-Drevnig
23015
23015
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f64189%2fshow-hidden-htaccess-files-by-default%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown