I need to strip the executable flag from all files within a certain directory and sub directories. Right now I'm doing it with a 2 step process
find /dir/ -type f -exec chmod ugo-x {} ; find /dir/ -type d -exec chmod ugo+rx {} ;
Is it possible to modify the first line so that I can strip exec flag from all non-directory files? Since this needs to be done on a fairly regular basis across a lot of directories and files, I'd prefer not to use a bash script which would slow it down.
What is best to make a image or a backup. Whit what for program. By a image form what partion do i have to make a image. By backup what directory to backup.
so that when by linux is corrupt i can do a reinstall.
I have recently upgraded RHEL 4.8 to RHEL 4.9 Beta.Since 4.9 ISO are unavailable and has to be fetched through update from RHEL 4.8.Can I anyhow create ISO of RHEL 4.9 Beta?Why Beta..becoz my team test pre-releases too.
I am trying to make a floppy image with a working file system so that I can test a 2 stage boot loader. When I attempt to mount the floppy and then cp the second binary over to it, mount gets all unhappy. Here are the steps I am trying to use:
I recently used clonezilla to make a backup image of hdd, before doing factory restore, now the image is of not necessary as I can image the restored computer (Acer Aspire 3620).Is it possible to extract image to blu-ray and make bootable as in live-cd?
I have attached an external USB disk to my debian gnu/linux system. The disk showed up as device /dev/sdc, and I prepared it like this:created a single partition withfdisk /dev/sdc (and some more commands in the interactive session that follows)formatted the partition withmkfs.msdos /dev/sdc1If I then attach the USB disk to a Windows XP or Vista system, then no new drive becomes available. The disk and its partition show up fine in the disk managment tool under "computer management", but apparently the file system in the partition is not recognized.How do I create a FAT32 file system which can actually be used in windows?edit:I've given up on this and went with a NTFS file system created by windows. In debian lenny this can be mounted read-write but apparently it requires you to install the "ntfs-3g" package and explicitly pass the -t ntfs-3g option to the mount command.
I'm familiar with the software and hierarchy of the mount command but I can't find any info on why it is needed or preferred. What are the physical aspects of it? What is the burden of having files accessible all the time?
i was wondering if it is possible too use the DD command to make an image file of my blackberry 8330?i need it of the onboard memory and not the external memory card.
I have never used rsync before, only DD. But from what I have been reading, rsync is better becasue it will basically mirror your hard drive, thus being able to run the cloned software from the new hard drive. My problem is I do not know what is the best commands or even the basic commands to use in rsync. I am trying to make an image from a external hard drive to a usb drive. That way my chances of messing up he original software is not as risky becasue I'll just restore the image onto another hard drive. Does anyone know the best script to have rsync make an image file of a hard drive and place it on a usb drive and then restore it?
i am in need of linux help. iam at college and i need this back/restore script to pass this final part of an assessment. i require a backup script that will not only backup but also restore files to the relevent directories. e.g. users are instructed to store all wordprocessor files in a directory named wp. so i am needing to create a backup directory and 3 directories within that and some files within the 3 directories and then back them up ot restore them. l know i should/have to do this myself by been trying to get/understand info for the last few days and came up with zero.
I want to make a webserver with multiple users allowed to login through SFTP to a specific folder, www.Multiple users are added, lets say user1 and user2, and all of them belonging to the www-data group. The www directory has an owner www-data and a group www-data.
I have used chmod -R 775 on the www folder, but after I try to create a folder test through my SFTP server (using Filezilla) the group of the directory created has only r and x permissions, and I am not able to log in with the second user user2 and create a directory within www/test due to a lack of w permission to the group.
I also tried using chmod 2775 on www directory, but without luck. Can somebody explain to me, how can I make it so that a newly created directory inherits the root directory group permissions?
I am writing a script, in that my requirement is, if all the fill types stored in one directory from that we need to separate different different directories based on the file types.
for example in a directory(anish). 5 different types files 1- directory 2- .txt files 2- .sh files
like that and my requirement is the (1- directory is moved to one new directory(dir) which we are given in the script)and (2 .txt files are moved to another new directory(test) which we are given in the script)and ( 2 .sh files are moved to another new directory(bash) which we are given in the scrip)finally the directory anish should be empty..using bash script.how it is possible !!
1. Make different directories for a datatype. 2. Then create an HTML page for that specific datatype. So that users can access that data for that datatype.
I need to create a startup file. As far as I've been able to find out the best locations to do this are the /etc/init and /etc/init.d directories. Two questions about that:
1) Can I just make blahblah.conf file in one of these directories and then it will be automatically read at boot-time or do I need to create a line that directs to the right file and location in again some other file?
2) Does it matter which of the directories (init of init.d) directories I use, ie., what's the difference?
I need to, through a bash script, go through a given directory (given as argument 1) to list out the relative path in this directory (including $1) for eact subdirectory which contains files. Directories which only contain . .. and eventually only subdirectories SHALL NOT be listed. It is this last requirement that makes it difficult for me.
I have been using the tree command for now, but I have not found a way to ignore paths to directories which only contains other subdirs or nothing at all in any easy way. I may offcourse test each directory after they are listed but this gives an extra loop to go through and I beleive it should be possible to do it directly when creatring the list. I guess by using find or ls in conjuntion with the tree command or by itself it should be possible but I am not to conversant of nested script commands.
When I try to view my home folder (for instance), I press the icon on the left of my name (/home/...) and it doesn't do what I accustomed to which is to show the text form of the directory. Is this a bug or am I missing something?
Here is the issue:I create saome variables to make shortcut to some directories I go frequently (so, I then I type, e.g. cd $P_DIR). Of Course before that I put a valid value into P_DIR variabe.Also, alias, asalias cls=clearSo, I type cls, and is the same as the commando clear (but shorter)What I want to do is that those variables as aliases stay in the computer when I reboot or turn off and turn on.So, I put "somewhere" (this is the place(s) maybe one for variables, and other for aliases, turn of the computer, and when I turn on, the aliases and variables are still there
I downloaded and burned Mandriva one to a cd. When I tried to open the cd on an old-ish Mac PowerPC I received a message saying "no mountable file systems". Is there a way to get around this problem?
i am a new user on opensuse 11.4, i want to make an iso image from my current distro without my personal data,to share it with my Friends,just like "remastersys" program on Ubuntu,how can i do this? but please use a simple Language,because i am a Arabic user and i do not speak English very well.
After I upgraded from Lenny to Squeeze, Thunar (in Xfce4) can't seem to detect when a CD is placed in the CD-ROM drive. When I put a USB in the USB port, Thunar adds an icon to the desktop, but with data CDs this isn't happening, and I must mount them from the terminal. However, CDs made from an ISO, for example, my Debian install CD, are detected and appear on the desktop.
i booted up this morning and got a surprise. when i plug in a usb drive normally, it pops up in the k message box, and i can choose too mount it. then it mounts no problem.
when i turned on the computer today, however, i plugged in my usb drive, and clicked to mount it, and lo and behold, i got a strange message: 'Could not mount the following device: USB 8GB'
im not entirely sure what this means. i can mount the drive manually through the terminal if it's running as root, but thats not a particularly practical way to do things, as i am a student and often have to switch USB drives and ipods many times a day.
I configure my system in a long time and now I have a suitable system! But I install all directories in one partition and now I like install again, but I need make an image of my configuration for install from it and after install I don't spend time for again configuration.
Recently I succesfully installed conky. I managed to get a lot of things work with more or less effort but I can't make conky to display any image.Images path and permissions had been checked. Imlib2 support too but conky won't display a thing.
I have an image with a autorun.inf file on it and wanted to make it bootable on a simple cd (700Mb). Untill now I tried and failed to make it bootable. The image is on the cd but the cd won't boot.I tried also under windows (with n?r0) and failed again... no way to boot on this cd with the image I created.I need more informations or how toes ^^ to use the "El-Torito" features for the mkisofs utility that I use to create my .iso files
I need to make a disk image of Jaunty. Something like Acronis True Image or Norton Ghost in the Windows contingence. I have tried Remastersys and Ghost 4 Linux. The former simply created an ISO file, which is 1/10th of the size of my hard drive and I do not know how to restore my computer using the ISO. The latter seems to be stuck at 0% even after leaving my PC on for 4 hours and verifying that all the settings are correct.