Questions tagged [fd]
A user-friendly alternative to find command
16 questions
0 votes
0 answers
60 views
ps ax and -o fd
According to ps(1), ps doesn't support fd. even I didn't find fd in task_struct of kernel. How can I find fd of a program? َUPDATE: FD means File Descriptor. When I get query from services such as : ...
5 votes
1 answer
227 views
Removing /dev/fd from backup
I accidentally rsynced (with symlink following) my entire / to another disk. I was running rsync as a regular user. Realizing my mistake, I wanted to clean up the backup. It deleted all the files, ...
2 votes
1 answer
1k views
fd-find does not find anything
fd-find does not finding anything. When searching something in home directory it instantly exists without any error. ❯ mkdir root ❯ cd root ❯ touch test ❯ ls -l total 0 -rw-rw-r-- 1 s1n7ax s1n7ax 0 ...
2 votes
1 answer
777 views
How to exclude all hidden folders except content of .config with fdfind?
Using fd also known as fdfind, how would I go about not including any hidden directories and files except for all the content in the .config directory?
0 votes
1 answer
508 views
How to search for directory containing file
I just discovered fzf (fuzzy finder) and now want to achieve the following using fd (https://github.com/sharkdp/fd): From the current directory find immediate parent directories of all files that ...
0 votes
2 answers
769 views
why i need to run pipe(2) so i can share data between processes?
This is a follow-up question, UNIX-focused i m trying to implement my own shell and i got stuck in the pipe feature after some research i found out that i need to run pipe(2) to share data between ...
1 vote
1 answer
309 views
Anchored excludes with find or fd
Let's say I want to find all files in a directory (recursively), but omit those e.g. in .git and node_modules subdirectories. I can do: $ fd -uut f -E .git -E node_modules But that will, for example, ...
0 votes
1 answer
3k views
List all directories in home folder with fd
I'm trying to write a shell function to rapidly cd into any directory in my home folder, using the fd and fzf programs. This is what I have so far function fdcd() { cd "$(fd --type d --ignore-file ...