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;
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
add a comment
|
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
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
add a comment
|
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
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
16.04 nautilus
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
add a comment
|
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
add a comment
|
2 Answers
2
active
oldest
votes
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
add a comment
|
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 namels -1r
sort by name in reverse orderls -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 modifiedls -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
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/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
);
);
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%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
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
add a comment
|
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
add a comment
|
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
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
answered Apr 20 at 1:30
pomskypomsky
39.9k12 gold badges131 silver badges159 bronze badges
39.9k12 gold badges131 silver badges159 bronze badges
add a comment
|
add a comment
|
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 namels -1r
sort by name in reverse orderls -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 modifiedls -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
add a comment
|
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 namels -1r
sort by name in reverse orderls -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 modifiedls -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
add a comment
|
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 namels -1r
sort by name in reverse orderls -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 modifiedls -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
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 namels -1r
sort by name in reverse orderls -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 modifiedls -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
answered Apr 20 at 1:22
WinEunuuchs2UnixWinEunuuchs2Unix
58.5k18 gold badges119 silver badges232 bronze badges
58.5k18 gold badges119 silver badges232 bronze badges
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.
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%2f1134560%2fin-ubuntu-16-04-how-can-i-resort-files%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
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