Skip to main content
0 votes
1 answer
49 views

I have a program like this (the indented lines can be run multiple times): #!/bin/bash options="" options+=" --ignore={" read pattern options+='"' options+="$...
Julek's user avatar
  • 1
1 vote
2 answers
147 views

I am at a very early stage in writing a C++ program replicating the most basic functions of the ls bash command. I use the <filesystem> header. The std::filesystem::directory_iterator and std::...
Giogre's user avatar
  • 1,664
0 votes
0 answers
38 views

I am currently working on my own implementation of the ls command. While working with the dirent structure I noticed that most code for displaying the name of the file in a directory are like this: ...
Tempest_Sword's user avatar
0 votes
2 answers
92 views

I am currently working on the implementation of my own "ls" command. I've been relying on the structure but I found an old post stating that some members of this structure such as d_type ...
Tempest_Sword's user avatar
0 votes
1 answer
64 views

I have a dir in which I keep adding new dirs from a script. I want to enter that new sub-dir directly rather that always manually doing eza --sort=modified then copy pasting that name then cd into ...
bbqman's user avatar
  • 41
2 votes
1 answer
162 views

I started studying bash from the very beginning. I decided to practice using shortcuts for the current directory and the parent directory (dot and double dot). I noticed some strange behavior of the ...
Akramat's user avatar
  • 163
0 votes
1 answer
71 views

I would have thought ls \*\&\* would work but it doesn't.
Scott C Wilson's user avatar
1 vote
1 answer
45 views

I am trying to list the absolute path to all files in a given directory and all its subdirectories. I can almost get there using ls -LR | xargs realpath The only issue is that this also includes the ...
SanMu's user avatar
  • 784
0 votes
1 answer
416 views

I have a bucket with several folders, and inside each several files. I just want to list the .tsv files inside those folders that contain the pattern"*report_filtered_count10" in their name. ...
DaniCee's user avatar
  • 3,247
0 votes
1 answer
342 views

I am using eza instead of ls and have made changes in .zshrc alias ls="eza --icons=always" I want to add colors to my zstyle completion zstyle ':completion:*' list-colors "${(s.:.)...
Anshul Goyal's user avatar
1 vote
6 answers
4k views

I try to remove all the columns from the output of ls -l command except date modified, time modified, and name. drwxr-xr-x 5 john staff 160 May 16 01:59 some-folder -rw-r--r--@ 1 john staff ...
user avatar
-3 votes
1 answer
60 views

I have two directories in a 5TB HDD: folderA folderB I need to rclone sync or rsync these two dirs in another HDD, but the storage is limited to 2TB. So i decided to sync only the "newest"...
blastbeng's user avatar
  • 301
0 votes
0 answers
290 views

I am building a FUSE file system using my Ubuntu22 virtual machine on a macbook. I have implemented the getattr function below and compiled using gcc fuse-fs.c -o testfs `pkg-config fuse --cflags --...
redhunter's user avatar
15 votes
5 answers
7k views

On macOS 13.2, in zsh, ls returns the following error message: dyld[15164]: Library not loaded: /usr/local/opt/libgit2/lib/libgit2.1.6.dylib Referenced from: <14346135-E664-31AF-A80B-05A5335ED5D7&...
Alex Roberts's user avatar
0 votes
0 answers
68 views

How can i see files bigger than 10MB sorted by their size and in descending order in my home directory, by using find sort and ls commands (terminal)? I begin my pipe with this command: find ~ -type f ...
tseloskon's user avatar

15 30 50 per page
1
2 3 4 5
89