2
votes
2answers
2k views

Move files to another directory which are older than a date

I am looking for a solution to move files that are year older from today. My log partition is getting full, but I can not remove them. They are needed for a long long time. Anyway one solution I came ...
0
votes
1answer
100 views

make backup of file when user run rm -f [closed]

Here is the scenario; I need to authorize a user to do activity in /opt/dev-folder/. Developer makes frequent changes in file, some time they replaced or remove original file. I have assigned ...
1
vote
1answer
66 views

What are the ramifications of UNIX files and directories where owner doesn't have group rights to the file?

I've a group of users, all of which are in a single group. Then I have a Java daemon that is a member of a seperate group. I want both the users and the daemon to have access to the same set of ...
2
votes
5answers
906 views

Safe way to determine size of a file using unix tools?

I wonder, what's the best way to determine the size of a file using common unix tools. I need to determine the size of a file in bytes in a shell script. The problem is, that the shell script needs to ...
1
vote
3answers
660 views

Simple easy to use CLI file index search on unix?

I need a simple unix utility that would allow me to search within files quickly and with basic parameters (this folder, not this kind of files...). Currently I use a hand crafted find function with ...
4
votes
5answers
2k views

Unable to remove file using 'rm'

In one of our severs (IBM AIX), we have a file in path /data/1002/ which we were not able to remove or delete using the 'rm' command. The error message we got is "rm: S1208001.002: A file or directory ...
0
votes
1answer
447 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
3
votes
4answers
204 views

Moving live files on a unix like system

On a recent job posting for a general Unix admin at a datacenter, a listed requirement was to move live files in a data center setting. What does this mean and how can one move live files?
1
vote
2answers
1k views

linux file -i command outputs octet/stream for every media file

On Linux / Unix Command file: " -i Causes the file command to output mime type strings rather than the more traditional human readable ones " Why does it always output "application/octet-stream" ...
5
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 ...
40
votes
15answers
9k views

Favorite rsync tips and tricks

The more I use rsync the more I realise that it's a swiss army knife of file transfer. There are so many options. I recently found out that you can go --remove-source-files and it'll delete a file ...