2 votes
Accepted

Find all files of name recursively, touch, and chmod all in one terminal command?

You can do that by using the -exec option and using its output as argument for a subshell: find . -name '.DS_Store' -exec zsh -c 'touch -t 200101010101 "$1" && sudo chmod 444 "$...
user avatar
  • 1,931
2 votes

Find folders that contain only one specific file (.DS_Store) and no others?

Solution The following find command does what I think you want: braces={} find TARGET_PATH -type d \( -empty -o -exec sh -c ' echo | find "$1" ! \( -type f -name .DS_Store \) -exec sh -c &...
user avatar
2 votes
Accepted

See htop tree evolve in slow-motion

Limited generic way to replay in slow motion You can use script to record htop, like: script -O typescript -T typescript.timing -c 'htop -t' script will exit just after htop exits. Alternatively: ...
user avatar
1 vote

How can I achieve the look of the Kali terminal in Ubuntu?

For getting the same prompt it should be as easy as running echo "$PS1" on your kali machine and copying the content of the PS1 variable to your other machine. The look of the terminal ...
user avatar
  • 1,931
1 vote

On windows startup terminal opens automatically and showing file not found error

This message is displayed because of XMRig, described as a CPU/GPU miner and RandomX benchmark, searching for the file xmrig.json and others. You have perhaps removed XMRig and this is just a leftover....
user avatar
  • 412k
1 vote

On windows startup terminal opens automatically and showing file not found error

Based on the name of the files this is from the XMRig CPU Miner prgroam. This is a Crypto Minor program (https://xmrig.com/). But if you didn't install it ever, it might've been maliciously installed ...
user avatar
  • 4,936
1 vote

Find all files of name recursively, touch, and chmod all in one terminal command?

How about: find . -name '.DS_Store' -exec sudo touch -t 200101010101 {} + -exec sudo chmod 444 {} + -print (remember, -exec with + builds a single command with all files as arguments)
user avatar
  • 121
1 vote

How do you output a QR code to the linux cli terminal for scanning?

If you are looking for a python library, look at this GitHub project qrcodeT. Install qrcodeT simply using: pip install qrcodeT Example usage: import qrcodeT qrcodeT.qrcodeT('https://github.com/...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible