Discussion Overview
The discussion revolves around how to list the creation date of files in Linux bash, specifically focusing on the differences in functionality across various file systems and versions of core utilities. Participants explore various commands and their applicability, as well as the limitations imposed by different environments.
Discussion Character
- Technical explanation
- Debate/contested
- Exploratory
Main Points Raised
- One participant inquires about listing the creation date of files, emphasizing the need for this information beyond just modification dates.
- Another participant cites 'man ls' on Mac OS, stating that 'ls -Ul' can show file-creation times, but this does not apply to GNU bash on Red Hat Linux.
- A participant explains that the ability to retrieve file creation times depends on the file system, listing several file systems that support creation times, such as ext4 and btrfs, and suggesting the use of the 'stat' command.
- One user reports that their file system is ext3 and that their version of 'stat' lacks options to show creation times, prompting a request for further guidance.
- Another participant suggests installing ext4 support and the latest coreutils to enable creation time retrieval, while also questioning the user's intent without using the term "creation date."
- A participant expresses reluctance to undertake extensive changes and seeks clarification on how to determine when content was initially created.
- One user proposes that 'ctime' could serve as a substitute for creation time, explaining its relationship to file changes.
- Another participant challenges the reliability of 'ctime' for determining creation time, noting discrepancies in file timestamps.
- A later reply suggests checking if the file manager can display creation times, indicating that if it is available, there may be a way to retrieve it through other means.
- One participant reiterates that while 'ctime' might approximate creation time, it does not guarantee accuracy and lacks a definitive method to confirm it.
Areas of Agreement / Disagreement
Participants express differing views on the availability and reliability of file creation dates across various systems and commands. There is no consensus on a definitive method to retrieve file creation dates in all scenarios.
Contextual Notes
Limitations include the dependency on specific file systems and versions of core utilities, as well as the lack of support for certain commands in different environments.