Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 7 gru 2012 · If you want to modify the file relative to its existing modification time instead, the following should do the trick: touch -d "$(date -R -r filename) - 2 hours" filename. If you want to modify a large number of files, you could use the following: find DIRECTORY -print | while read filename; do.

  2. Changing file timestamps to a specific date and time. If you have a specific time and date you would like to be used for all the timestamps of a file or directory, touch command will gladly accempt a timestamp template with -t command line option.

  3. If you want to modify the file relative to its existing modification time instead, the following should do the trick: touch -d "$(date -R -r filename) - 2 hours" filename. This does not work for me under Redhat. The minus sign is ignored and the time is set ahead two days just as if I'd entered. touch -d "$(date -R -r filename) + 2 hours" filename

  4. To update the timestamps of a file to a specific date in the past, you can use the -t or -d options with the touch command. Here's an example: touch -t 202301010000 file.txt. Explain Code. Practice Now. This will set the modification time (mtime) and change time (ctime) of the file file.txt to January 1, 2023, at 00:00:00.

  5. 22 lis 2021 · The terminal program can change the modification and access time for any given file. The touch command creates a file only if the file doesn't already exist. This tutorial explains how to use the touch command with basic and advanced options.

  6. 19 gru 2023 · In this comprehensive guide, we’ve delved into the touch command in Linux, a versatile tool for handling files and their timestamps. From creating new files to modifying timestamps and handling multiple files, the touch command proves to be an essential part of any Linux user’s toolkit.

  7. 10 maj 2019 · The touch command allows us to update the timestamps on existing files and directories as well as creating new, empty files. In this guide, we will show you how to use the touch command through practical examples and detailed explanations of the most common command options.

  1. Ludzie szukają również