Skip to main content

Questions tagged [touch]

touch is a command line utility to change file timestamps.

0 votes
1 answer
33 views

Script to find multiple files and update their timestamps by a second

I'm trying to create an interactive script that lets me choose a start date and time, then recurse into the present directory/subdirectories, find all flac audio files, sorted by directory/...
arcturus's user avatar
1 vote
0 answers
65 views

Cannot touch a specific filename, but also cannot remove it [closed]

I'm using a linux terminal on a mounted drive which (according to df -Th ) is of type "cifs"; let's say I'm in directory /dir/. I created a file file_1. Then I deleted it, and now I want to ...
Jabber1's user avatar
  • 119
0 votes
1 answer
101 views

Fix the bogus modification time of some mkv files based on that of srt files with the same root name

I found around 50 mkv files with modification time in the future (year 2098 and 2097). I see that .srt files with the same name carry the right date and are located in the same subfolder as each mkv ...
Loop1's user avatar
  • 21
7 votes
2 answers
1k views

How to automatically set the modification (or creation) time of a Quicktime video file based on its meta data?

In a shell, how to automatically set the modification (or creation) date and time of a Quicktime video file based on the metadata in the file with a single command (or a single command line)? For JPG ...
user avatar
1 vote
1 answer
3k views

touch: /Users/username/.zshrc: No such file or directory

I'm on macOS Ventura 13.2. Tried to fix python by adding it to .zshrc: echo "alias python=/usr/bin/python3" >> ~/.zshrc zsh: no such file or directory: /Users/username/.zshrc Seems ...
daniel's user avatar
  • 13
1 vote
0 answers
156 views

How to change birth/creation time without copy the whole file?

In Btrfs, stat a file will show birth time, which I try to change but find the method is always about copying the whole file, that would be a time waste, it'd be good to change it like access, modify, ...
user551324's user avatar
1 vote
0 answers
93 views

Linux touchscreen - touch indicator

Is there any package that adds a touch indicator similar to what is in windows 10/11. I mean such a gray circle that shows where you touch on the screen.
Dafik's user avatar
  • 11
1 vote
0 answers
142 views

`touch` combined with `find -newer` behaves unexpected in script

Goal I was looking for a simple way to check for new files. As the target system is a minimal embedded Linux platform, I cannot just install more packages. Current Solution A nice solution seemed to ...
L. Heinrichs's user avatar
2 votes
1 answer
274 views

touch/mkdir seems to ignore default ACL

I am pretty sure it is a stupid mistake but I can't seem to figure it out by myself, so please have a look. I set up an ACL for the current folder like so: zigbee2mqtt@nuc:/tmp/folder$ getfacl . # ...
milkpirate's user avatar
1 vote
0 answers
274 views

Dbus not starting on Ubuntu Touch

systemctl --user start dbus Failed to start dbus.service: Process org.freedesktop.systemd1 exited with status 1 See user logs and 'systemctl --user status dbus.service' for details. systemctl --user ...
eacelmar's user avatar
3 votes
1 answer
264 views

Why am I not able to use * with touch in path? [duplicate]

This is the output of tree: [xyz@localhost Semester1]$ tree . ├── Eng ├── IT ├── IT_workshop ├── LA ├── OS ├── OS_lab ├── Psy ├── Python └── Python_lab 9 directories, 0 files I want to create 3 ...
Random Person's user avatar
0 votes
1 answer
331 views

How can I obtain the time stamp from a file or directory in touch format?

According to many websites I found online the touch commands' -t argument accepts the time stamp in the following format: [[CC]YY]MMDDhhmm[.ss] Here, CC: The first two digits of the year. YY: The ...
Zoltan King's user avatar
2 votes
1 answer
941 views

Map touch display of the same type with xinput - which is which

on my Linux box I have 2 DELL touch display of the exact same type. One is connected on HDMI-2, the other on DP-1. To map the touch display I use sudo xinput --map-to-output _ID1_ HDMI-2 sudo xinput -...
l.raimondi's user avatar
0 votes
1 answer
94 views

"touch" command with a working "-f" command-line option?

Older versions of the touch command offered a working -f command-line option, which could be used as follows: touch -f file1 file2 With this command, the modification time of file2 could be set to ...
HippoMan's user avatar
  • 657
-4 votes
5 answers
5k views

How do I create a file named \*\\'"Best School"\'\\*$\?\*\*\*\*\*:) on linux with touch command [closed]

I have had these issues for a while now. I've tried different approaches, all to no avail.
daviSPhem's user avatar

15 30 50 per page
1
2 3 4 5
9