[sysadmin@localhost Downloads]$ uname -a
Linux localhost.localdomain 5.10.7-200.fc33.x86_64 #1 SMP Tue Jan 12 20:20:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Today, I did a ‘dnf update’. New kernel version shown above in the uname output.
After the update, the file names and were appearing a little weird. So, I did a restart. Now the file names are fine.
From gnome, I can right-click and open(create) a new text document. I had to configure this as it doesn’t come out of the box in gnome (unlike MS Windows).
But, after the update when I create a new text file, the timestamp of creation is hardcoded to 09-August-2019 !!
Same goes for any file with or without an extension. Its always 09-August-2019 !! I think this is a bug.
Hey–how have you done this please? It probably isn’t a bug with Gnome, but with whatever you used to add this functionality to Gnome. So let’s start there.
How I added the ‘New text file’ and ‘New LibreOffice Doc’ to the Right click menu
–Adding ‘Create document’ menu and adding Text, .doc (odt) , excel file
Go to /home/<user>/Templates directory , do the following
— to add ‘Text File’ to the right click menu
a. touch Text\ File.txt
— To add ‘Libre office Doc’ to the right click menu
Open an instance of Libre office writer and click Save as and save a file named ~/LibreOfficeDoc.odt
Pitfall (Don’t know if this still applies for Fedora 33)
If you manually touch a file with .odt extension, any new document will only be text file.
Regarding the Screenshot tip you gave:
It doesn’t work for me.
Once the right-click menu is active, how do you invoke Activities>Screenshot utility ?
I tried clicking the Super key (Windows Key) while the right-click menu is active, but nothing happens. Needless to say, I cannot use mouse to do this as the right-click will be gone if I use the mouse.
I can see that the timestamp of the ‘template’ files I had created in /home//Templates directory
has the timestamp 09-Aug-2019.
But, whenever I created a new .txt file or new .odt (LibreOffice doc), the right timestamp used to be shown.
Only today, after the ‘dnf update’ maybe, this ‘issue’ started happening.
Hrm, doesn’t work for me here, but I didn’t have a Templates directory on this user. Maybe I’d deleted it (I’ve been upgrading Fedora releases for a number of years now, so my home configuration doesn’t change).
I’ll create a new user later and see if I can reproduce the issue.
No, do it the other way. First invoke Activities > Screenshot. There, you can set a delay, say 5 seconds. Click “take screenshot”, and in the five seconds get your right click menu up. When the screenshot is taken, if your right click menu was open, it’ll be in the screenshot.
I just tested this out. On my system, the time stamp for the new file seems to be the same as whatever it was for the template file:
# Check modification time
$ ls -ls Templates/ dump/test/
dump/test/:
total 8
8 -rw-r--r--. 1 asinha asinha 7931 Jan 20 16:45 Doc.odt
Templates/:
total 8
8 -rw-r--r--. 1 asinha asinha 7931 Jan 20 16:45 Doc.odt
0 -rw-rw-r--. 1 asinha asinha 0 Jan 20 16:45 file.txt
# Check creation time
$ ls -ls Templates/ dump/test/ --time=creation
dump/test/:
total 8
8 -rw-r--r--. 1 asinha asinha 7931 Jan 20 16:53 Doc.odt
Templates/:
total 8
8 -rw-r--r--. 1 asinha asinha 7931 Jan 20 16:45 Doc.odt
0 -rw-rw-r--. 1 asinha asinha 0 Jan 20 16:45 file.txt
So, the new file that is created using the template has the same “modified time”, which will change once you work with the file and save it again. The creation times vary—the new file you create will have a newer creation time.
How are you checking the time attributes for your files? Are you certain you are looking at the creation time and not the modified time? Nautilus (the file manager) shows me “accessed time” and “modified time”. It does not show me a “creation time”. Gotta use ls for that.
Emm…
I guess that wasn’t an issue, after all. My bad. Thank You very much Ankur.
Determining the creation time of a file using --time=creation option in the ls command : Has it always been there in the GNU’s ls utility? Or is it something new? Because, few years back, I remember my System admin (RHEL) friend telling me that, in Linux, you cannot find the creation timestamp of a file ; i.e. you can only know the Modified time stamp.
No worries. It was fun to revise these things a bit
I’m not sure—it’s one of those things that we don’t need too often. The modification time stamp is generally enough. We’ll have to look at the changelog or commit log to see if it’s mentioned there:
and you will see that the Birth attribute will be empty (at least in F32 with ext4). As i know this should be a attribute where is in several filesystems available. But as there is no agreement till today it is just empty
Correction: in Fedora 33 (BTRFS) the attribute is used.