Hi,
I have a requirement to move a file from one folder(a) to another folder(b) only when folder (b) have a write permission. Folder permission is 755
If the permission is otherthan 755 we need to come out of the loop
I will appreciate your help
Thanks
Soll (1 Reply)
This is the file structure:
DESKTOP/Root of Photo Folders/Folder1qweqwasdfsd/*jpg
DESKTOP/Root of Photo Folders/Folder2asdasdasd/*jpg
DESKTOP/Root of Photo Folders/Folder3asdadfhgasdf/*jpg
DESKTOP/Root of Photo Folders/Folder4qwetwdfsdfg/*jpg
DESKTOP/Root of Photo... (4 Replies)
How can this be done?
I mean, I want to search for all *png *jpg *bmp files in my ~/Pictures/ folder....How can I list them?
Thank you geeks :) :b: (2 Replies)
Hello,
Neither ‘Grep -r' nor ‘grep -R' is working in my environment. (Searching for a text pattern in the files)
Any suggestions... Using SunOS 5.9
Thanks,
Trinanjan. (1 Reply)
Hi all,
let me explain my requirments
i am having 5 folder with different name for eg) abc , cdf , efd, rtg, ead
each 5 folders contain 15 files
i want to move 10 files to some other folder, remain 5 files should be there in the same folder.
give me some suggestion on this. (6 Replies)
Hi,
I want to move files like *.txt to another filesystem on the same server only when the disk usage reaches 80% or more. But need to keep the latest 5 files. After that delete from the original. How to proceed?
Please help
Gav... (5 Replies)
Hi all,
I'm Using Centos 6.4
/opt/my_aplication/entry/data/0/
There are Thousands of files in this Directory, Only i need to copy or move the apache User's file from this to /tmp/backup , I have listed apache user's file using find . -user apache -type f , its gave me the only apache... (2 Replies)
I am trying to move specific folders and subfolders within a directory using the below. I can see the folders to move and they are at the location, but I am getting an error. Thank you :).
mv -v /home/cmccabe/Desktop/NGS/API/6-10-2016{bam/{validation,coverage},bedtools /media/cmccabe/"My... (6 Replies)
Hi,
I am trying to find out whether there are any Unix utilities that compares folders, files and contents within the file and provides a comprehensive report. The comparison can be against base version of a folder and file with content. Can you please let me know of such a utility?
Thanks,... (6 Replies)
Discussion started by: Sripathi_ks
6 Replies
LEARN ABOUT DEBIAN
update-grub
update-grub(8) System Manager's Manual update-grub(8)NAME
update-grub - program to generate GRUB's menu.lst file
SYNOPSIS
update-grub
DESCRIPTION
update-grub is a program used to generate the menu.lst file used by the grub bootloader. It works by looking in /boot for all files which
start with "vmlinuz-". They will be treated as kernels, and grub menu entries will be created for each. It will also create the initial
menu.lst if none exists, after prompting the user. It will also add initrd lines for ramdisk images found with the same version as kernels
found. e.g. /boot/vmlinuz-2.4.5 and /boot/initrd-2.4.5 will cause a line of "initrd=/boot/initrd-2.4.5 or similar to be added for the ker-
nel entry in the menu.lst.
After update-grub has been run for the first time, the user is required to edit the generated menu.lst. The user must set the two options
update-grub uses. Then re-run the update-grub script to update the menu.lst file using the default's that have been set.
These are the options passed to the linux kernel:
# kopt=root=/dev/hda1 ro
Everything after "kopt=" is passed to the kernel as parameters. See bootparam(7) for more information.
This is the grub device from which grub loads the kernel:
# groot=(hd0,1)
(hd0,1) is a partition in grub notation. See grub(8) for more information.
This option controls if grub should create the alternative boot options in the menu entries
# alternative=true
# alternative=false
This option controls if grub should lock the alternative boot options see grub(8) for more information.
# lockalternative=true
# lockalternative=false
This option controls if grub should lock the old kernels.
# lockold=true
# lockold=false
This options controls what is used for the alternative boot options, multiple altoptions lines are allowed.
# altoptions=(some description) some kernel command line options
# altoptions=(recovery option) single
The description is placed in '()' and the kernel command line options follow that.
# updatedefault=true
# updatedefault=false
This option controls if grub should update the default entry to keep booting the same kernel even if a new one is installed.
The update-grub script can be ran automagically from the /etc/kernel-img.conf file by adding the following lines:
postinst_hook = update-grub
postrm_hook = update-grub
do_bootloader = no
For further information related to /etc/kernel-img.conf, see the manpage kernel-img.conf(5).
SEE ALSO grub(8), grub-install(8), kernel-img.conf(5) (contained in the kernel-package package), bootparam(7).
The full documentation for grub is maintained as a Texinfo manual in the grub-legacy-doc package. If the info and grub programs are prop-
erly installed at your site, the command
info grub
should give you access to the complete manual.
AUTHOR
This manual page was written by Jason Thomas <jason@debian.org>, for the Debian GNU/Linux system (but may be used by others).
Jason Thomas June 18, 2001 update-grub(8)