10 More Discussions You Might Find Interesting
I am creating a new disk using the following command:
dd if=/dev/zero of=/export/home/ramdisk/0 bs=512 count=4096k
after creating the disk, i tool a ufsdump of a solaris 10 filesytem (disk size 512MB)
ufsdump -cvf /export/home/ufsdump/sol_orig /and then restored the dump files onto... (10 Replies)
Discussion started by: Zam_1234
2. Shell Programming and Scripting
cp bin root src /mnt
but not copy bin/bigfile
( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum)
Thanks (6 Replies)
Discussion started by: yanglei_fage
I've been spending a lot of hours trying to imitate cp copying a file to a directory.
I just can't seem to write to a specified directory, it only creates a copy on the current directory.
any hints/tips will help! Thanks!
here's the code i've been trying to manipulate:
... (1 Reply)
Discussion started by: l flipboi l
4. Shell Programming and Scripting
I am looking for an answer for following senario:
I have a text file (base.txt) which consist list of files to be searched like:
Now i am going to search all the listed files in another directory after reading them one by one, once i found the... (10 Replies)
Discussion started by: apjneeraj
5. UNIX for Dummies Questions & Answers
I've been researching this problem for days, and have gotten no luck . =/
How do you copy a file to another directory without being in the same directory as the file? So, for example, say I wanted to copy the file 'my.txt' that is in the directory ' /export/hom0/user/asdf ' to the... (9 Replies)
Discussion started by: kvnqiu
6. Shell Programming and Scripting
i want a samll help to write a script.
i had source location with :/user/bin (bin contains subdirectories with like names emails etc and had several files in each subdirectory)
and target location with :/usr/scripts (having same subdirectories names and had some files)... (1 Reply)
Discussion started by: Reddy482
7. Shell Programming and Scripting
I wish to copy the latest file of pattern "MyFile*" to some other location.
I need to do all the operation in a single command separated by |.
ls -rt <MyFile*> | tail -1 | <copy command>.
How can I do?
Please help me.
Kanda (2 Replies)
Discussion started by: spkandy
I have created a file that has list of all the files I want to copy into another directory.Is there a way to do it?
Thanks In advance (4 Replies)
Discussion started by: shreethik
I want to serch for a string in all the files in the root directory. i want the search to be limited to only the files in the directory i.e the search to be done only in the files not in the sub directory.
the approaches tried are
1)grep "pattern string"
this command was serching the... (3 Replies)
Discussion started by: Subbu_Angeline
10. UNIX for Dummies Questions & Answers
HP UX 11i
Ok my server is about to run out of space, and i would like to know if there is something that i should be doing on a regular basis to maintain the machine like logs that i should clear or dmp file that i should delete...
Thanks in Advance (2 Replies)
Discussion started by: bbutler3295
CHROOT(8) BSD System Manager's Manual CHROOT(8)
chroot -- change root directory
chroot [-u -user] [-g -group] [-G -group,group,...] newroot [command]
The chroot command changes its root directory to the supplied directory newroot and exec's command, if supplied, or an interactive copy of
If the -u, -g or -G options are given, the user, group and group list of the process are set to these values after the chroot has taken
place. See setgid(2), setgroups(2), setuid(2), getgrnam(3) and getpwnam(3).
Note, command or the shell are run as your real-user-id.
The following environment variable is referenced by chroot:
SHELL If set, the string specified by SHELL is interpreted as the name of the shell to exec. If the variable SHELL is not set, /bin/sh is
chdir(2), chroot(2), environ(7)
The chroot utility first appeared in 4.4BSD.
chroot should never be installed setuid root, as it would then be possible to exploit the program to gain root privileges.
4.3 Berkeley Distribution October 6, 1998 4.3 Berkeley Distribution