Show hidden .htaccess files by default











up vote
6
down vote

favorite
3












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










share|improve this question


























    up vote
    6
    down vote

    favorite
    3












    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










    share|improve this question
























      up vote
      6
      down vote

      favorite
      3









      up vote
      6
      down vote

      favorite
      3






      3





      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










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 4 '11 at 7:30









      vitto

      233239




      233239






















          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)






          share|improve this answer























          • Can we set somehow Nemo or Nautilus, to show hidden files per directory like sorting, for example?
            – Vassilis
            Jul 9 at 13:26


















          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.






          share|improve this answer





















          • I'd also recommend alias ls='ls -a --color=auto'
            – Irfan434
            May 16 at 5:14


















          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.






          share|improve this answer




























            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.






            share|improve this answer





















              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
              });


              }
              });














              draft saved

              draft discarded


















              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)






              share|improve this answer























              • Can we set somehow Nemo or Nautilus, to show hidden files per directory like sorting, for example?
                – Vassilis
                Jul 9 at 13:26















              up vote
              13
              down vote













              You can use Ctrl+H if you are browsing files using Ubuntu File Browser (Nautilus)






              share|improve this answer























              • Can we set somehow Nemo or Nautilus, to show hidden files per directory like sorting, for example?
                – Vassilis
                Jul 9 at 13:26













              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)






              share|improve this answer














              You can use Ctrl+H if you are browsing files using Ubuntu File Browser (Nautilus)







              share|improve this answer














              share|improve this answer



              share|improve this answer








              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


















              • 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












              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.






              share|improve this answer





















              • I'd also recommend alias ls='ls -a --color=auto'
                – Irfan434
                May 16 at 5:14















              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.






              share|improve this answer





















              • I'd also recommend alias ls='ls -a --color=auto'
                – Irfan434
                May 16 at 5:14













              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.






              share|improve this answer












              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.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Oct 4 '11 at 22:28









              hggdh

              48733




              48733












              • 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
















              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










              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.






              share|improve this answer

























                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.






                share|improve this answer























                  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.






                  share|improve this answer












                  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.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Oct 4 '11 at 7:57









                  binW

                  9,38263962




                  9,38263962






















                      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.






                      share|improve this answer

























                        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.






                        share|improve this answer























                          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.






                          share|improve this answer












                          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.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jul 4 '15 at 0:31









                          Erik Berkun-Drevnig

                          23015




                          23015






























                              draft saved

                              draft discarded




















































                              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.




                              draft saved


                              draft discarded














                              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





















































                              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







                              Popular posts from this blog

                              Ellipse (mathématiques)

                              Quarter-circle Tiles

                              Mont Emei