02-08-2015
Didn't work in which way?
How abou treading man tar? I didn't put the f option into tar command.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi everone!
My computer is ultra80,Operation system 2.6,when I boot get a message "WARNING: ap: no database locations "
And then I can login root , but for other user can`t login and had message "no shell". I use csh,after login root when I su -user also had... (11 Replies)
Discussion started by: yyt19701210
11 Replies
2. Shell Programming and Scripting
Is it possible to redirect standard output to two locations? Unfortunately, I need to redirect it to two different files. Or if there might be any utilities that can do it.
I'm suspecting not as it's all pipes and filters, but thought I'd ask. (2 Replies)
Discussion started by: GaryRudolph
2 Replies
3. Shell Programming and Scripting
Dear Sir,
I am Shidlingayya India, i am new to unix script..my problem is
present-> I have to read the eeprom locations from 0 to 255 locations in separate file..i wrote the code for this as follows
@eep_save_all ;<filename> store eeprom data to intel hex file
kr 0,,02/n
wf %1,... (0 Replies)
Discussion started by: shidlingayya
0 Replies
4. Shell Programming and Scripting
I want to delete a particular string ( ex : berkely@abc.com ) from different locations and in different files in each location.
Please help me ! (4 Replies)
Discussion started by: nani_ynm
4 Replies
5. Shell Programming and Scripting
Hello all
I have a question on displaying log
When i am redirecting the output to a log, it displays but in a format which i am not happy about. Can i give any explicit commands which says to display the above log at specific row and column
I want to do this for each line of the log
What is... (2 Replies)
Discussion started by: vasuarjula
2 Replies
6. Solaris
Hi Guys,
There was a post that I saw here a while ago regarding file system layout and what to put where, which I am unable to find now..
A user here posted a man page that list what each partition should have in it and what it is used for and were you should install custom packages.
ie:... (1 Reply)
Discussion started by: Tornado
1 Replies
7. Shell Programming and Scripting
Hi all,
My tar file exists in directory: /usr/users/rovolis/test1/archive.tar
Now from directory: /usr/users/rovolis/ i run the following command
tar xvzf /usr/users/rovolis/test1/archive.tar
The problem is that the extraction of files is not done
Any idea why?
Thank you (1 Reply)
Discussion started by: chriss_58
1 Replies
8. Shell Programming and Scripting
Hi everybody,
I need a script for below issue:
I have totally 15 different locations like */COUNTRY/in.
Only COUNTRy is the variable which changes for 15 countries.
For each location(one per country), there will be four files like abc_def_ddmmyyyy.txt, where ddmmyyyy is the old date.
... (1 Reply)
Discussion started by: rjanardhan83
1 Replies
9. Programming
I've got the following two queries:
1) What's the difference in performance if a variable storage is at bss and not at the data section (apart from the initialization to zero in case of data section variables --like static variables).
In general, why a developer need to bother about the... (1 Reply)
Discussion started by: Praveen_218
1 Replies
10. UNIX for Dummies Questions & Answers
Hi ,
I have a file which looks like this
source1 LEN predictive 392879 394347 0.955489 + . Name=sa000003.1;ID=sa000003;Alias=sa121751.1;
source1 LEN descriptive_1 391082 392878 . . . Parent=sa000003.1;supp_id=.1805.1;
... (3 Replies)
Discussion started by: siya@
3 Replies
LEARN ABOUT OPENSOLARIS
chroot
chroot(1M) System Administration Commands chroot(1M)
NAME
chroot - change root directory for a command
SYNOPSIS
/usr/sbin/chroot newroot command
DESCRIPTION
The chroot utility causes command to be executed relative to newroot. The meaning of any initial slashes (/) in the path names is changed
to newroot for command and any of its child processes. Upon execution, the initial working directory is newroot.
Notice that redirecting the output of command to a file,
chroot newroot command >x
will create the file x relative to the original root of command, not the new one.
The new root path name is always relative to the current root. Even if a chroot is currently in effect, the newroot argument is relative to
the current root of the running process.
This command can be run only by the super-user.
RETURN VALUES
The exit status of chroot is the return value of command.
EXAMPLES
Example 1 Using the chroot Utility
The chroot utility provides an easy way to extract tar files (see tar(1)) written with absolute filenames to a different location. It is
necessary to copy the shared libraries used by tar (see ldd(1)) to the newroot filesystem.
example# mkdir /tmp/lib; cd /lib
example# cp ld.so.1 libc.so.1 libcmd.so.1 libdl.so.1
libsec.so.1 /tmp/lib
example# cp /usr/bin/tar /tmp
example# dd if=/dev/rmt/0 | chroot /tmp tar xvf -
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
cd(1), tar(1), chroot(2), ttyname(3C), attributes(5)
NOTES
Exercise extreme caution when referencing device files in the new root file system.
References by routines such as ttyname(3C) to stdin, stdout, and stderr will find that the device associated with the file descriptor is
unknown after chroot is run.
SunOS 5.11 15 Dec 2003 chroot(1M)