0
votes
4answers
1k views

Find files/folders that are filling up disk space [duplicate]

Possible Duplicate: How can I determine what is taking up so much space? I just had an old server go belly up because it ran out of drive space. I am logged in to the shell, and I'm trying ...
0
votes
2answers
140 views

Recursive deletion of files (bash)

I'm familiar with how I would tackle this with PHP, however I'd like to get some more practice with bash scripting. The task is to delete all files in a folder, which itself contains subfolders ...
1
vote
1answer
58 views

Bash: checking uniqueness of filenames, and renaming or removing files

I'm working in CentOS with bash and I have files in a directory as follows: 16948.png 16948_thumb.png 16948-1_thumb.png 16949.png 16948_thumb.png 16949-1_thumb.png 16950-1.png ...
0
votes
1answer
493 views

how i can check if the path (file) exist or not in unix bash?

i want to check a path if exist or not before pass it as argument
0
votes
2answers
694 views

Delete multiple files with special characters

I have a machine containing a large number of files that were originally created on a mac with some sort of special character in the name (not sure what). When I do an ls in a bash terminal, these ...
28
votes
6answers
19k views

Merge 2 directory trees in Linux without copying?

I have two directory trees with similar layouts, i.e. . |-- dir1 | |-- a | | |-- file1.txt | | `-- file2.txt | |-- b | | `-- file3.txt | `-- c | `-- file4.txt `-- ...
6
votes
6answers
3k views

In *nix, how to determine which filesystem a particular file is on?

In a generic, modern unix environment (say, GNU/Linux, GNU/Solaris, or Mac OS X), is there a good way to determine which mountpoint and filesystem-type a particular absolute file path is on? I ...