All Questions
1,365
questions
-1
votes
3
answers
76
views
Search for all directories that are smaller than 4MB
I want to display all directories that are smaller than 4MB using find command.
Already tried find / type d -size -4000000c(same with a dot instead of/`) but both combinations display files too. What ...
-2
votes
1
answer
37
views
How can I create a zip file based upon a Linux find command? [closed]
I have the following command which will find every bin file recursively within a directory
sudo find . -type f -name "*.bin"
I want to create (in the current directory) a zip file names ...
-3
votes
1
answer
35
views
linux find in multiple directories limiting by MAX TOTAL SIZE
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"...
-2
votes
1
answer
47
views
Understanding a linux script with combination of find + grep + awk
I have a script with this:
find . -name '*.nar' | while read NARFILE; do
if jar tvf $NARFILE | grep -q jackson-databind; then
OUTPUT=$(jar tvf $NARFILE | grep jackson-databind)
echo $...
-1
votes
1
answer
81
views
Fix the following command so that it does search the home directory for files names README.md
I am confused on these two answers I got. Question:
Fix the following command so that it does search the home directory for files named README.md:
find README.md ~
find ~ -type f -name README.md (...
0
votes
0
answers
38
views
File listing by using find, sort and ls commands
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 ...
-1
votes
1
answer
178
views
Single complex command to find, tar, and zip files on AIX
I have a long Linux csh command that finds/tars/and zips all files in all subdirectories of a directory. It looks like this:
find /dir1/dir2/* -mtime -1 -type -f -print0 | xargs -0 tar -zcf /dir1/dir3/...
0
votes
4
answers
128
views
Find command doesn't work properly for a hidden folder
I have the following directory tree:
Inside the "all" folder there are a lot of subfolder, let's call one of them "mainfolder".
What I want to do is:
to delete all files in the ...
0
votes
3
answers
177
views
Bash command to list names of specific directories and subdirectories on Linux
I need a bash command that searches the directory "rawdata" for all subdirectories with names starting with "AB", searches all these for the subdirectory "demo" and ...
1
vote
3
answers
56
views
Search 32 character long directories only with find
Let say I have a directory with a lot of subdirectories:
04762b39018e3cf4b1a2c6a304919b75
06e0caf156de30dd962cf6b9300aba66
1f1d0cb1b810336299cda5426d0f12f5
2fe7a428eb303da6846800fa20ab7ed4
...
0
votes
0
answers
16
views
linux: why does piping "find" to "tar" produce a larger tar file than tar by itself?
This is likely easy, but it's unclear to me:
If I tar the whole directory...
tar -zcvf all.tar.gz /my/data/output
--size 1.2 gig
If I "du" a search range of files....
find /my/data/output ...
0
votes
1
answer
277
views
find: paths must precede expression: `days'
Hi maybe a noob question here. I am running the command
find . -atime -2 days # n = 2
to see the files accessed 2 days ago. But the shell returns an error saying
find: paths must precede expression: ...
0
votes
1
answer
16
views
delete subdirectories only at maxdepth 2 and above
I have directory with 6 subdirectories but I wish to delete subdirectories from only 3 of them, hence I used a for loop to 'cd' inside these 3 directories, but I want to delete the subdirectories at ...
1
vote
1
answer
161
views
How to locate Magento\Catalog\Model\Category in my Magento 2 file system
I am trying to debug an problem on a Magento 2. I have an error message that mentions the folder Magento\Catalog\Model\Category so I am trying to find this folder to help with debugging. This is ...