My bash scripting knowledge is very weak that's why I'm asking help here. What is the most effective bash script according to performance to find and copy files from one LINUX server to another using specifications described below.
I need to get a bash script which finds only new files created in server A in directories with name "Z" between interval from 0 to 10 minutes ago.
I am using Ubuntu 12.10, Apache2.2, PHP-FPM. My aim is to set up a working (free) shared hosting system, that means I want to create new Linux users and jail (equals to chroot, I guess) them into their home directories so they absolutely won't have permission to touch the main file system or other users' files.
I am pretty new to scripting, so I appreciate your advice in advance.
The problem:
100 directories each containing 2 files that have the same extension with random names. The only attribute that discriminates the files is size. I would like to write a script that compares the files for size and deletes the smaller of the two. Thanks! - OSX, X11, bash
Have got a homework (Shell script) which I tried my best to make it work, but in vain. Can anyone help.Question:Write a bash program named fix-permissions.sh that accepts a list of users as arguments.1- If one user or more are given as arguments, the script should reset file permissions as follows: a. Directory ~/share to 750 (if it exists). b. All regular files inside ~/share to 744. c.
I'm searching for an easy way to organize web server directories on Linux.
Users can use FTP to upload their web pages onto the server.
When using Tab for completion on the Bash shell prompt, is there any way to configure it to complete only files for the command vim and only directories for the command cd?
I have some directories of files copied from my security camera that I would like to organize into sub-directories by file date.
I have the following bash script generating a jpg file with the same name of the video file. Now I need to change the bash script to generate the jpg file with the name image.jpg instead of with the same name of the video.
I tried lots of different ways to do that but I'm not really good in bash scripting and I have some problem with the basename and subdirectories.
May you please help me?
So I created a small bash script to consolidate some files across a couple different unix machines, what they are is irrelevant. Script works fine.
I have a batch file on a PC that remotely executes this script, again, no hiccups in the process.