Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Make hidden files appear in folder from terminal?

  1. #1
    Join Date
    Sep 2013
    Beans
    101

    Make hidden files appear in folder from terminal?

    Hi is there a command from the terminal that will show hidden files in the folders? I know about CTRL+H and ls from terminal but i would like to know if there is a command that does the same as ctrl+h from the terminal that shows/hides hidden files/folders?

  2. #2
    Join Date
    Oct 2006
    Location
    Ayrshire
    Beans
    39,949
    Distro
    Ubuntu Development Release

    Re: Make hidden files appear in folder from terminal?

    Try

    Code:
    ls -a

  3. #3
    Join Date
    Sep 2006
    Location
    France.
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Make hidden files appear in folder from terminal?

    Hello
    ls -a

    Edit : Woohoo, ninja'd !
    | My old and mostly abandoned blog |
    Linux user #413984 ; Ubuntu user #178
    J'aime les fraises.
    Nighty night me lovelies!

    | Reinstalling Ubuntu ? Please check this bug first ! |
    | Using a ppa ? Please install ppa-purge from universe, you may need it should you want to revert packages back |
    | No support requests by PM, thanks |

  4. #4
    Join Date
    Sep 2013
    Beans
    101

    Re: Make hidden files appear in folder from terminal?

    Nono guys many thanks but what i want is to type a command in the terminal and go to the folder and see it has shown hidden files

  5. #5
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Make hidden files appear in folder from terminal?

    You go to folders with the cd command

    for example

    Code:
     cd Desktop  #relative path, works when you are in your home folder
    Code:
    cd ~/Desktop  # absolute path, works always
    or
    Code:
     cd /home/$USER/Desktop  # absolute path, works always
    and then you run
    Code:
    ls -a
    or long output
    Code:
    ls -la
    You can also use path with the ls command, for example

    Code:
    ls -la ~
    to list all files and folders including the hidden ones in your home directory.
    Last edited by sudodus; October 29th, 2013 at 01:46 PM.

  6. #6
    Join Date
    Sep 2013
    Beans
    101

    Re: Make hidden files appear in folder from terminal?

    Hi, but i do not want to list the contents in the terminal i just would like to type a command in the terminal so that when i click back on my folder it has done the same as CTRL+H. I just want to add a custom script to thunar so i can right click any folder and select show/hide files/folders

  7. #7
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Make hidden files appear in folder from terminal?

    Well, that is another thing

    I think it is hard to make something that is easier than ctrl+H. If you don't want to use the keyboard, there is an entry in a pull-down menu to toggle listing hidden files.

  8. #8
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Make hidden files appear in folder from terminal?

    Quote Originally Posted by adec2 View Post
    Hi, but i do not want to list the contents in the terminal i just would like to type a command in the terminal so that when i click back on my folder it has done the same as CTRL+H. I just want to add a custom script to thunar so i can right click any folder and select show/hide files/folders
    Don't know why you want to but for nautilus.....
    Code:
    gsettings set org.gnome.nautilus.preferences show-hidden-files true

  9. #9
    Join Date
    Sep 2013
    Beans
    101

    Re: Make hidden files appear in folder from terminal?

    i'll have to look into this further. The gsettings command didnt automatically show hidden files either

  10. #10
    Join Date
    Apr 2012
    Beans
    5,316

    Re: Make hidden files appear in folder from terminal?

    If you are using thunar as mentioned in post #6 then gsettings / dconf won't help you afaik

    There is a somewhat parallel settings mechanism called xfconf, it shows a parameter called /last-show-hidden

    Code:
    $ xfconf-query -c thunar -l
    /last-details-view-column-widths
    /last-details-view-zoom-level
    /last-icon-view-zoom-level
    /last-separator-position
    /last-show-hidden
    /last-view
    /misc-single-click
    /misc-thumbnail-mode
    /tree-icon-emblems
    /tree-icon-size
    If you monitor it while toggling thunar's hidden file visibility (via Ctrl-H or the View->Show Hidden Files checkbox) it appears to be the relevant parameter

    Code:
    $ xfconf-query -c thunar -p /last-show-hidden -m
    Start monitoring channel "thunar":
    
    set: /last-show-hidden
    set: /last-show-hidden
    set: /last-show-hidden
    set: /last-show-hidden
    but although setting it seems to be allowed e.g.
    Code:
    xfconf-query -c thunar -p /last-show-hidden -s true
    it does not change the active display i.e. it seems to just be a record of the 'last' toggle event as indicated by its name, rather than an actively updateable setting like the dconf/gsettings equivalent.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •