All Questions
13
questions
0
votes
1
answer
6k
views
Where to find the website folder in ubuntu server?
So someone gave me the task to find where is the website code exist on ubuntu server
when I look at the the index.html file path it is
/var/www/example.com/html
but when I go to /var/www directory I ...
0
votes
1
answer
1k
views
Move files older than day
I am looking for some solution, where I have to move all the directories and files under the source directory to the destination a day before. I want to move the directories till yesterday but not ...
1
vote
3
answers
1k
views
Solaris 11 find empty folders (-empty not work)
How to find empty dir and delete in Solaris 11.
I try this:
find . -type d -empty
Output:
find: bad option -empty
find: [-H | -L] path-list predicate-list
5
votes
1
answer
878
views
Why is L2ARC not giving more speedup for directory traversal?
L2Arc is usually configured to cache random spinning platter reads on an SSD. I've set up this configuration in the hopes of speeding up directory traversal.
This is the setup:
# zpool list -v
NAME ...
2
votes
1
answer
4k
views
/bin/sh: /bin/cp: Argument list too long
I have problem with this command:
'cp' -fr /www/*-aws/* /www/mainhost/aws/awstatstotals/tmp/
Error is Argument list too long - I know many /www/-aws/ folders. I know that I can use FIND command, ...
5
votes
1
answer
14k
views
How can i manipulate the find command to "find" the directories the "found" file is in?
So i'm trying to use the find command to find all files in my system with mtime -x. It does this but it does not "find" the directories of the file.
find . -mtime -2 -exec rsync -av {} /destination/ ...
1
vote
0
answers
343
views
Composer runtime error when deleting subdirectories
I am running 'composer install' on my server, and then using the script feature to delete all subdirectories called '.git' but I am running in the following composer error.
Delete all .git dirs
find: ...
0
votes
1
answer
6k
views
find directories in the current directory, older than 5 days and archive them
This is basic questions. I need to find folders in the current working directory(not recursively) and if they are older than 5 days archive them. zip or tar.gz is fine.
I can find the folders with ...
1
vote
2
answers
863
views
find all end subdirectories in a tree
given the following structure:
oz123@debian:~/ $ tree .
.
├── a
│ ├── a1
│ ├── a2
│ └── a3
├── a1
│ ├── a11
│ ├── a12
│ └── a31
├── b
│ └── b1
│ ├── b11
│ │ └── b21
│ ...
-4
votes
3
answers
9k
views
Find in all sub directories [closed]
I have a directory with many sub directories,
I want to find a file in this directories so I use this command:
find ./ -name test.php
but this command search just in the top level directory,
how ...
-2
votes
1
answer
1k
views
On Unix on could I get a listing of all mp3 files inside a directory containing other directories with their full path?
Someone said to me use the find command but I'm not exactly sure how to do it.
Basically I need this:
suppose I have a folder called dir1 and it contains three sub-directories (dir2, dir3 and dir4 ...
6
votes
2
answers
12k
views
How to count all subfolders in an directory?
How can I count how many folders (including subfolders) I have under an specific folder?
19
votes
5
answers
33k
views
How do I find (or exclude) all directories and sub-directories matching a certain pattern (in Linux)?
I'm trying to use the Linux find command to find all directories and sub-directories that do not have .svn (Subversion hidden folders) in their path. I can only get it to exclude the actual .svn ...