In Ubuntu 16.04, how can I resort files?Deleted home directory. Please helpHow to batch process JPG images to change its quality with Nautilus-Actions?Can't set list view as default in FilesUnity - dash cannot find files (Ubuntu 16.04)Last resort for wireframing and mockups on ubuntuSamba service won't start on 16.04 LTS (not an upgrade) anymoreHow can I manipulate files (delete, rename, create, etc) in pop-up file menu in Ubuntu 16.04?Recover drive / path name back to previous name

How much Money Should I save in Order to Generate $1000/Month for the rest of my life?

How can three vectors be orthogonal to each other?

Is there a difference between historical fiction and creative non-fiction?

The work of mathematicians outside their professional environment

This fell out of my toilet when I unscrewed the supply line. What is it?

Why didn't Snape ask Dumbledore why he let "Moody" search his office?

How to accompany with piano in latin music when given only chords?

Minimum perfect squares needed to sum up to a target

Windows 10 Lock Screen Wallpaper, where is this location?

Should I reveal productivity tricks to peers, or keep them to myself in order to be more productive than the others?

Go (to / in) your own way

What is the next number in the sequence 21, 21, 23, 20, 5, 25, 31, 24, ...?

How do I know how many sub-shells deep I am?

What cartridges were typically used together on Commodore 64 systems?

How to explain that the sums of numerators over sums of denominators isn't the same as the mean of ratios?

Are 1 in 6 deaths in the USA due to lead exposure?

Can't change the screenshot directory because "com.apple.screencapture: command not found"

Are there any phrases or idioms to describe someone rejected the chance to do something at first, but liked it the moment they tried it?

What does it take to recreate microchips like 68000 and 6502 in their original process nodes nowadays?

Why do many websites hide input when entering an OTP?

How to be productive while waiting for meetings to start, when managers are casual about being late

Is insurance company’s preferred auto shop biased?

Does SQL Server's serializable isolation level lock entire table

Add dot after chapter title (scrreprt document)



In Ubuntu 16.04, how can I resort files?


Deleted home directory. Please helpHow to batch process JPG images to change its quality with Nautilus-Actions?Can't set list view as default in FilesUnity - dash cannot find files (Ubuntu 16.04)Last resort for wireframing and mockups on ubuntuSamba service won't start on 16.04 LTS (not an upgrade) anymoreHow can I manipulate files (delete, rename, create, etc) in pop-up file menu in Ubuntu 16.04?Recover drive / path name back to previous name






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









1















In Ubuntu 16.04, how can I resort files in a folder? It seems I must choose name or last modified. I tried renaming to change when modified, but was left with original date.The files are a mix of .txt, .eml and .odt. I would like the files listed in another order. When I made a change to the name, the time last modified remained the same. I don't know how to modify some non-text files. I am not tech-savvy and don't know the right words for much of this. I appreciate your patience. Any help is much appreciated.










share|improve this question





















  • 2





    It's difficult to know what you mean. Resort for what? In detailed view you can sort by a lot of different criteria.

    – pLumo
    Apr 17 at 7:15











  • Also what do you mean by "resort files"? Do you simply mean "how do I sort files"?

    – pomsky
    Apr 17 at 10:24

















1















In Ubuntu 16.04, how can I resort files in a folder? It seems I must choose name or last modified. I tried renaming to change when modified, but was left with original date.The files are a mix of .txt, .eml and .odt. I would like the files listed in another order. When I made a change to the name, the time last modified remained the same. I don't know how to modify some non-text files. I am not tech-savvy and don't know the right words for much of this. I appreciate your patience. Any help is much appreciated.










share|improve this question





















  • 2





    It's difficult to know what you mean. Resort for what? In detailed view you can sort by a lot of different criteria.

    – pLumo
    Apr 17 at 7:15











  • Also what do you mean by "resort files"? Do you simply mean "how do I sort files"?

    – pomsky
    Apr 17 at 10:24













1












1








1








In Ubuntu 16.04, how can I resort files in a folder? It seems I must choose name or last modified. I tried renaming to change when modified, but was left with original date.The files are a mix of .txt, .eml and .odt. I would like the files listed in another order. When I made a change to the name, the time last modified remained the same. I don't know how to modify some non-text files. I am not tech-savvy and don't know the right words for much of this. I appreciate your patience. Any help is much appreciated.










share|improve this question
















In Ubuntu 16.04, how can I resort files in a folder? It seems I must choose name or last modified. I tried renaming to change when modified, but was left with original date.The files are a mix of .txt, .eml and .odt. I would like the files listed in another order. When I made a change to the name, the time last modified remained the same. I don't know how to modify some non-text files. I am not tech-savvy and don't know the right words for much of this. I appreciate your patience. Any help is much appreciated.







16.04 nautilus






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 20 at 0:29







Frank P

















asked Apr 17 at 7:10









Frank PFrank P

251 silver badge5 bronze badges




251 silver badge5 bronze badges










  • 2





    It's difficult to know what you mean. Resort for what? In detailed view you can sort by a lot of different criteria.

    – pLumo
    Apr 17 at 7:15











  • Also what do you mean by "resort files"? Do you simply mean "how do I sort files"?

    – pomsky
    Apr 17 at 10:24












  • 2





    It's difficult to know what you mean. Resort for what? In detailed view you can sort by a lot of different criteria.

    – pLumo
    Apr 17 at 7:15











  • Also what do you mean by "resort files"? Do you simply mean "how do I sort files"?

    – pomsky
    Apr 17 at 10:24







2




2





It's difficult to know what you mean. Resort for what? In detailed view you can sort by a lot of different criteria.

– pLumo
Apr 17 at 7:15





It's difficult to know what you mean. Resort for what? In detailed view you can sort by a lot of different criteria.

– pLumo
Apr 17 at 7:15













Also what do you mean by "resort files"? Do you simply mean "how do I sort files"?

– pomsky
Apr 17 at 10:24





Also what do you mean by "resort files"? Do you simply mean "how do I sort files"?

– pomsky
Apr 17 at 10:24










2 Answers
2






active

oldest

votes


















0
















Simply renaming a file would not change its timestamp (modification date), you need to either make an actual change to the content of the file itself or use the touch command to change the modification date.



Run following command in Terminal



touch /path/to/file


to change the modification date of the file to current time. For example for a file named sample-file in your Documents folder, run



touch ~/Documents/sample-file





share|improve this answer
































    0
















    Although you can sort files in Nautilus (the File Manager) you get more options when using the ls (list files and directories (not Lost Saloon)) command and changing the parameters passed to it.



    A brief summary from the LostSaloon: how to sort the output of ‘ls command’ in linux command line




    • ls -1 (yes that is a one not an L). Sort by name


    • ls -1r sort by name in reverse order


    • ls -lr --group-directories-first Sort by name in reverse order with directories listed first (they usually appear in blue text)


    • ls -t sort by date last modified


    • ls -S sort by file size (largest to smallest)


    • ls -S sort by file size (smallest to largest)


    • ls -X sort by extension

    For even more power pipe ls output (send output) to the sort command. For example to sort files on owner user ID:



    ls -l | sort -k 3


    Whilst answering this question I found something interesting:



    $ ls -laSr
    total 2216
    -rw-r--r-- 1 rick rick 0 Aug 3 2018 .sudo_as_admin_successful
    -rw-r----- 1 rick rick 0 Apr 16 17:14 .gksu.lock
    -rw-rw-r-- 1 rick rick 0 Aug 23 2018 File A
    (... SNIP ...)
    -rw-rw-r-- 1 rick rick 143383 Sep 30 2018 dbus-monitor-plugin.txt
    -rw-rw-r-- 1 rick rick 147247 Sep 30 2018 dbus-monitor-lid-close.txt
    -rw-rw-r-- 1 rick rick 177948 Oct 16 2018 java_error_in_STUDIO_9901.log
    -rwxrwxrwx 1 root root 350821 Dec 17 18:04 trace89.dat.gz
    -rw-rw-r-- 1 rick rick 20000000000 Apr 7 19:50 foo


    I must have used the sudo command that created the file:



    -rwxrwxrwx 1 root root 350821 Dec 17 18:04 trace89.dat.gz


    One must be careful with sudo because it can change the owner of files in a regular user's directory. This happened here but this particular file is of little concern.



    I must have forgot an experiment that created an extraordinary large file. I should have deleted this file:



    -rw-rw-r-- 1 rick rick 20000000000 Apr 7 19:50 foo





    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/4.0/"u003ecc by-sa 4.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%2f1134560%2fin-ubuntu-16-04-how-can-i-resort-files%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0
















      Simply renaming a file would not change its timestamp (modification date), you need to either make an actual change to the content of the file itself or use the touch command to change the modification date.



      Run following command in Terminal



      touch /path/to/file


      to change the modification date of the file to current time. For example for a file named sample-file in your Documents folder, run



      touch ~/Documents/sample-file





      share|improve this answer





























        0
















        Simply renaming a file would not change its timestamp (modification date), you need to either make an actual change to the content of the file itself or use the touch command to change the modification date.



        Run following command in Terminal



        touch /path/to/file


        to change the modification date of the file to current time. For example for a file named sample-file in your Documents folder, run



        touch ~/Documents/sample-file





        share|improve this answer



























          0














          0










          0









          Simply renaming a file would not change its timestamp (modification date), you need to either make an actual change to the content of the file itself or use the touch command to change the modification date.



          Run following command in Terminal



          touch /path/to/file


          to change the modification date of the file to current time. For example for a file named sample-file in your Documents folder, run



          touch ~/Documents/sample-file





          share|improve this answer













          Simply renaming a file would not change its timestamp (modification date), you need to either make an actual change to the content of the file itself or use the touch command to change the modification date.



          Run following command in Terminal



          touch /path/to/file


          to change the modification date of the file to current time. For example for a file named sample-file in your Documents folder, run



          touch ~/Documents/sample-file






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 20 at 1:30









          pomskypomsky

          39.9k12 gold badges131 silver badges159 bronze badges




          39.9k12 gold badges131 silver badges159 bronze badges


























              0
















              Although you can sort files in Nautilus (the File Manager) you get more options when using the ls (list files and directories (not Lost Saloon)) command and changing the parameters passed to it.



              A brief summary from the LostSaloon: how to sort the output of ‘ls command’ in linux command line




              • ls -1 (yes that is a one not an L). Sort by name


              • ls -1r sort by name in reverse order


              • ls -lr --group-directories-first Sort by name in reverse order with directories listed first (they usually appear in blue text)


              • ls -t sort by date last modified


              • ls -S sort by file size (largest to smallest)


              • ls -S sort by file size (smallest to largest)


              • ls -X sort by extension

              For even more power pipe ls output (send output) to the sort command. For example to sort files on owner user ID:



              ls -l | sort -k 3


              Whilst answering this question I found something interesting:



              $ ls -laSr
              total 2216
              -rw-r--r-- 1 rick rick 0 Aug 3 2018 .sudo_as_admin_successful
              -rw-r----- 1 rick rick 0 Apr 16 17:14 .gksu.lock
              -rw-rw-r-- 1 rick rick 0 Aug 23 2018 File A
              (... SNIP ...)
              -rw-rw-r-- 1 rick rick 143383 Sep 30 2018 dbus-monitor-plugin.txt
              -rw-rw-r-- 1 rick rick 147247 Sep 30 2018 dbus-monitor-lid-close.txt
              -rw-rw-r-- 1 rick rick 177948 Oct 16 2018 java_error_in_STUDIO_9901.log
              -rwxrwxrwx 1 root root 350821 Dec 17 18:04 trace89.dat.gz
              -rw-rw-r-- 1 rick rick 20000000000 Apr 7 19:50 foo


              I must have used the sudo command that created the file:



              -rwxrwxrwx 1 root root 350821 Dec 17 18:04 trace89.dat.gz


              One must be careful with sudo because it can change the owner of files in a regular user's directory. This happened here but this particular file is of little concern.



              I must have forgot an experiment that created an extraordinary large file. I should have deleted this file:



              -rw-rw-r-- 1 rick rick 20000000000 Apr 7 19:50 foo





              share|improve this answer





























                0
















                Although you can sort files in Nautilus (the File Manager) you get more options when using the ls (list files and directories (not Lost Saloon)) command and changing the parameters passed to it.



                A brief summary from the LostSaloon: how to sort the output of ‘ls command’ in linux command line




                • ls -1 (yes that is a one not an L). Sort by name


                • ls -1r sort by name in reverse order


                • ls -lr --group-directories-first Sort by name in reverse order with directories listed first (they usually appear in blue text)


                • ls -t sort by date last modified


                • ls -S sort by file size (largest to smallest)


                • ls -S sort by file size (smallest to largest)


                • ls -X sort by extension

                For even more power pipe ls output (send output) to the sort command. For example to sort files on owner user ID:



                ls -l | sort -k 3


                Whilst answering this question I found something interesting:



                $ ls -laSr
                total 2216
                -rw-r--r-- 1 rick rick 0 Aug 3 2018 .sudo_as_admin_successful
                -rw-r----- 1 rick rick 0 Apr 16 17:14 .gksu.lock
                -rw-rw-r-- 1 rick rick 0 Aug 23 2018 File A
                (... SNIP ...)
                -rw-rw-r-- 1 rick rick 143383 Sep 30 2018 dbus-monitor-plugin.txt
                -rw-rw-r-- 1 rick rick 147247 Sep 30 2018 dbus-monitor-lid-close.txt
                -rw-rw-r-- 1 rick rick 177948 Oct 16 2018 java_error_in_STUDIO_9901.log
                -rwxrwxrwx 1 root root 350821 Dec 17 18:04 trace89.dat.gz
                -rw-rw-r-- 1 rick rick 20000000000 Apr 7 19:50 foo


                I must have used the sudo command that created the file:



                -rwxrwxrwx 1 root root 350821 Dec 17 18:04 trace89.dat.gz


                One must be careful with sudo because it can change the owner of files in a regular user's directory. This happened here but this particular file is of little concern.



                I must have forgot an experiment that created an extraordinary large file. I should have deleted this file:



                -rw-rw-r-- 1 rick rick 20000000000 Apr 7 19:50 foo





                share|improve this answer



























                  0














                  0










                  0









                  Although you can sort files in Nautilus (the File Manager) you get more options when using the ls (list files and directories (not Lost Saloon)) command and changing the parameters passed to it.



                  A brief summary from the LostSaloon: how to sort the output of ‘ls command’ in linux command line




                  • ls -1 (yes that is a one not an L). Sort by name


                  • ls -1r sort by name in reverse order


                  • ls -lr --group-directories-first Sort by name in reverse order with directories listed first (they usually appear in blue text)


                  • ls -t sort by date last modified


                  • ls -S sort by file size (largest to smallest)


                  • ls -S sort by file size (smallest to largest)


                  • ls -X sort by extension

                  For even more power pipe ls output (send output) to the sort command. For example to sort files on owner user ID:



                  ls -l | sort -k 3


                  Whilst answering this question I found something interesting:



                  $ ls -laSr
                  total 2216
                  -rw-r--r-- 1 rick rick 0 Aug 3 2018 .sudo_as_admin_successful
                  -rw-r----- 1 rick rick 0 Apr 16 17:14 .gksu.lock
                  -rw-rw-r-- 1 rick rick 0 Aug 23 2018 File A
                  (... SNIP ...)
                  -rw-rw-r-- 1 rick rick 143383 Sep 30 2018 dbus-monitor-plugin.txt
                  -rw-rw-r-- 1 rick rick 147247 Sep 30 2018 dbus-monitor-lid-close.txt
                  -rw-rw-r-- 1 rick rick 177948 Oct 16 2018 java_error_in_STUDIO_9901.log
                  -rwxrwxrwx 1 root root 350821 Dec 17 18:04 trace89.dat.gz
                  -rw-rw-r-- 1 rick rick 20000000000 Apr 7 19:50 foo


                  I must have used the sudo command that created the file:



                  -rwxrwxrwx 1 root root 350821 Dec 17 18:04 trace89.dat.gz


                  One must be careful with sudo because it can change the owner of files in a regular user's directory. This happened here but this particular file is of little concern.



                  I must have forgot an experiment that created an extraordinary large file. I should have deleted this file:



                  -rw-rw-r-- 1 rick rick 20000000000 Apr 7 19:50 foo





                  share|improve this answer













                  Although you can sort files in Nautilus (the File Manager) you get more options when using the ls (list files and directories (not Lost Saloon)) command and changing the parameters passed to it.



                  A brief summary from the LostSaloon: how to sort the output of ‘ls command’ in linux command line




                  • ls -1 (yes that is a one not an L). Sort by name


                  • ls -1r sort by name in reverse order


                  • ls -lr --group-directories-first Sort by name in reverse order with directories listed first (they usually appear in blue text)


                  • ls -t sort by date last modified


                  • ls -S sort by file size (largest to smallest)


                  • ls -S sort by file size (smallest to largest)


                  • ls -X sort by extension

                  For even more power pipe ls output (send output) to the sort command. For example to sort files on owner user ID:



                  ls -l | sort -k 3


                  Whilst answering this question I found something interesting:



                  $ ls -laSr
                  total 2216
                  -rw-r--r-- 1 rick rick 0 Aug 3 2018 .sudo_as_admin_successful
                  -rw-r----- 1 rick rick 0 Apr 16 17:14 .gksu.lock
                  -rw-rw-r-- 1 rick rick 0 Aug 23 2018 File A
                  (... SNIP ...)
                  -rw-rw-r-- 1 rick rick 143383 Sep 30 2018 dbus-monitor-plugin.txt
                  -rw-rw-r-- 1 rick rick 147247 Sep 30 2018 dbus-monitor-lid-close.txt
                  -rw-rw-r-- 1 rick rick 177948 Oct 16 2018 java_error_in_STUDIO_9901.log
                  -rwxrwxrwx 1 root root 350821 Dec 17 18:04 trace89.dat.gz
                  -rw-rw-r-- 1 rick rick 20000000000 Apr 7 19:50 foo


                  I must have used the sudo command that created the file:



                  -rwxrwxrwx 1 root root 350821 Dec 17 18:04 trace89.dat.gz


                  One must be careful with sudo because it can change the owner of files in a regular user's directory. This happened here but this particular file is of little concern.



                  I must have forgot an experiment that created an extraordinary large file. I should have deleted this file:



                  -rw-rw-r-- 1 rick rick 20000000000 Apr 7 19:50 foo






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 20 at 1:22









                  WinEunuuchs2UnixWinEunuuchs2Unix

                  58.5k18 gold badges119 silver badges232 bronze badges




                  58.5k18 gold badges119 silver badges232 bronze badges































                      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.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1134560%2fin-ubuntu-16-04-how-can-i-resort-files%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

                      Tamil (spriik) Luke uk diar | Nawigatjuun

                      Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

                      Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?