Sponsored Content
Full Discussion: Soft links question
Top Forums UNIX for Dummies Questions & Answers Soft links question Post 302954420 by jcdole on Monday 7th of September 2015 04:32:22 PM
Old 09-07-2015
Quote:
Originally Posted by bakunin
Let me tell you a story ....

I hope this helps.

bakunin
I am afraid not, because english is not my mother language.

---------- Post updated at 22:32 ---------- Previous update was at 22:30 ----------

Quote:
Originally Posted by vbe
Because "file_2-1" and "file_2-2" are NOT soft link files....
/main_dir1/A/B/C/sub_dir2-1 is the soft link...
when you type
Code:
 cd /main_dir1/A/B/C/sub_dir2-1

look what you see...
I see two files.
And this my question : Are they soft link or a copy of original files into main_dir1/A/B/C/sub_dir2-1
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

links: (soft, hard? symbolic??) inode

Hi, what is link? and soft link? how about hard one and symbolic link. and inode. i get confuse about this links. could anyone help me with full explainsion? thks Gusla (5 Replies)
Discussion started by: gusla
5 Replies

2. UNIX for Dummies Questions & Answers

links.... soft or hard.. not sure?

hi, i am in a directory, have 2 files as below then do a ls -l gives the below lrwxrwxrwx 1 root system 23 Mar 08 2001 filea -> /adir/filea lrwxrwxrwx 1 root system 23 Mar 08 2001 filea -> /adir/fileb now, when i do a cd /adir, the system said, adir not... (5 Replies)
Discussion started by: yls177
5 Replies

3. Shell Programming and Scripting

using find to locate hard and soft links with tar

I am digging for certain types of files in the current directory and all its sub-directories and archiving them with the following code: #! /usr/bin/ksh Archive=`date +%Y_%m_%d_%T` find . -type f \( -name \*\.ksh -o -name \*\.sql -o -name \*\.ini \) -print|xargs tar -cf... (4 Replies)
Discussion started by: manthasirisha
4 Replies

4. UNIX for Dummies Questions & Answers

Command to find all soft links in a directory

I need the command to find all soft links in a directory. Can someone please help. Thank you. (2 Replies)
Discussion started by: jgeo01
2 Replies

5. Programming

creating soft links

i'm trying to write a c code to copy a soft link over to a specified directory. Is it possible to do this without using symlink()? if so, what can I use? Thanks! (2 Replies)
Discussion started by: l flipboi l
2 Replies

6. Solaris

Hard Links and Soft or Sym links

When loooking at files in a directory using ls, how can I tell if I have a hard link or soft link? (11 Replies)
Discussion started by: Harleyrci
11 Replies

7. AIX

List all the soft links and hard links

Hi I'm logged in as root in an aix box Which command will list all the soft links and hard links present in the server ? (2 Replies)
Discussion started by: newtoaixos
2 Replies

8. UNIX for Dummies Questions & Answers

Simple example for soft and hard links

Hai, give me a simple example for soft and hard links. this will work for soft link ?? ln -s (2 Replies)
Discussion started by: Ramesh M
2 Replies

9. Shell Programming and Scripting

Timestamp change for hard and soft links

Hi team, i am writing a purge script to delete softlinks and hardlinks on linux system which are 3/10/30 days old. To test the script i need to create links with old timestamp, i am able to cange timestamp for files but not for links. i tried touch -h option but this option is not available on... (1 Reply)
Discussion started by: Satyak
1 Replies
link(1m)																  link(1m)

NAME
link - A dcecp object that manages a soft link in CDS SYNOPSIS
link create link_name_list {-to target_name [-timeout expiration_time extension_time] | -attribute attribute_list} link delete link_name_list link help [operation | -verbose] link modify link_name_list {[-add attribute_list] [-remove attribute_list] [-change attribute_list]} link operations link show link_name_list [-schema] ARGUMENTS
A list of one or more names of CDS soft links. The name of the link operation for which to display help information. DESCRIPTION
The link object represents a Cell Directory Service (CDS) soft link. A soft link in CDS contains an attribute that has a name that is the same as the name of the object the soft link points to. The soft link contains several built-in attributes, but users are free to add their own attributes. Softlinks can point to objects, directories, and other soft links. ATTRIBUTES
The following CDS-defined attributes may be present in CDS link objects: Specifies the creation timestamp (CTS) of the soft link. The is a read-only DTS-style time stamp, which is set by the system. Specifies the full name of the directory, object entry, or other soft link to which the soft link points. Specifies a timeout value after which the soft link is either renewed or deleted. Its value is a list of two elements enclosed in braces, as follows: {expiration_time extension_time} where: Is a date and time after which CDS checks for the exis- tence of the soft link's target and either extends or deletes the soft link. The value is specified in the format yyyy-mm-dd-hh:mm:ss; portions of it can be defaulted. Is a period of time by which to extend the soft link's expiration time (if the server has validated that the target still exists). The value is specified in the format ddd-hh:mm:ss; portions of it can be defaulted. Specifies the timestamp of the most recent update to an attribute of the soft link. The value is a read-only DTS-style timestamp and is set by the system. See the OSF DCE Administration Guide for more information about link attributes. OPERATIONS
link create Creates a new soft link entry in CDS. The syntax is as follows: link create link_name_list {-to target_name [-timeout expiration_time extension_time] | -attribute attribute_list} Options Specifies a single name for the links to point to. If you do not use this option, you must specify the link target with the -attribute option. Specifies the expiration time and extension period for all soft links named by the link_name_list argument. The option syntax is as follows: {expiration_time extension_time} See ATTRIBUTES for more detailed information about link timeouts. If you omit the -timeout option, the link is permanent and must be explicitly deleted. Allows you to specify attributes by using an attribute list. See ATTRIBUTES for more detailed information about link attributes. The create operation creates a new soft link entry in CDS. The required link_name_list argument is a list of one or more full CDS names of the soft links to be created. This operation returns an empty string on success. Privileges Required You must have i (insert) permission to the directory in which you intend to create the soft link. Examples The following command creates a soft link named /.:/sales/tokyo/price-server that points to an object entry named /.:/sales/east/price- server. The expiration value indicates that CDS checks that the destination name /.:/sales/east/price-server still exists on June 25,1995, at 12:00 p.m. If the destination name still exists, the soft link remains in effect another 90 days. Thereafter, CDS will check that the destination name exists every 90 days. dcecp> link create /.:/sales/tokyo/price-server -to > /.:/sales/east/price-server -timeout {1995-06-25-12:00:00 90-00:00:00} dcecp> You can enter the same information as above by using the -attributes option, as follows: dcecp> link create /.:/sales/tokyo/price-server -attribute { > {CDS_LinkTarget /.:/sales/east/price-server} {CDS_LinkTimeout > {expiration 1995-06-25-12:00:00} {extension 90-00:00:00}}} dcecp> link delete Removes a link entry from CDS. The syntax is as follows: link delete link_name_list The delete operation removes a link entry from CDS. This task is usually done through a client application. The required link_name_list argument is a list of one or more full CDS names of the link entry to be removed. This operation returns an empty string on success. Privileges Required You must have d (delete) permission to the link entry or A (Admin) permission to the directory that stores the link entry. Examples dcecp> link delete /.:/sales/tokyo/price-server dcecp> link help Returns help information about the link object and its operations. The syntax is as follows: link help [operation | -verbose] Options Displays information about the link object. Used without an argument or option, the link help command returns brief information about each link operation. The optional operation argument is the name of an operation about which you want detailed information. Alternatively, you can use the -verbose option for more detailed information about the link object itself. Privileges Required No special privileges are needed to use the link help command. Examples dcecp> link help create Creates the named link. delete Deletes the named link. modify Adds, removes or changes an attribute in the named link. show Returns the attributes of a link. help Prints a summary of command-line options. operations Returns a list of the valid operations for this command. dcecp> link modify Changes attributes in the specified soft links. The syntax is as follows: link modify link_name_list {[-add attribute_list] [-remove attribute_list] [-change attribute_list]} Options Adds one or more new attributes to a soft link or adds values to existing attributes when values are not already present. Add an attribute type with no value by specifying an attribute type with no value. Removes an entire attribute or some attribute values from a soft link. If only the attribute type is specified after the option, the entire attribute is removed. If an attribute type and value are specified, only that value is removed. If an attribute or value is not present, an error is returned. Changes one attribute value to another for a soft link. Each attribute in the list has its existing value replaced by the new value given in the attribute list. For multi-valued attributes, all existing values are replaced by all the values listed for the attribute in the attribute list. If an attribute or value is not present, an error is returned. The modify operation can be used to change two attributes of a soft link: CDS_LinkTarget and CDS_LinkTimeout. The argument is a list of names of soft links to be operated on. The operation takes the -add, -remove, and -change options to specify an attribute list to describe the changes. All the modifications are performed on each soft link named in the argument. This operation returns an empty string on suc- cess. Privileges Required You must have w (write) permission to the link object. Examples The following example sets the link expiration time to 1998-01-20-12:00:00:00 and the extension time to 10 days: dcecp> link modify /.:/depts/emergency -change { > {CDS_LinkTimeout {expiration 1998-01-20-12:00:00:00} {extension +10-0:0:0}}} dcecp> link operations Returns a list of the operations supported by the link object. The syntax is as follows: link operations The list of available operations is in alphabetical order except for help and operations, which are listed last. Privileges Required No special privileges are needed to use the link operations command. Examples dcecp> link operations create delete modify show help operations dcecp> link show Returns attribute information associated with specified link entries. The syntax is as follows: link show link_name_list [-schema] Options This option returns whether an attribute is single or multi-valued. The type of value is specific to a link, meaning that the same attribute can be single-valued on one link and multi-valued on another. The show operation displays attribute information associated with specified link entries. The required link_name_list argument is a list of one or more full CDS names of the soft links you want to show. If more than one link is shown, the attributes of all the soft links are concatenated into one list. The order of the returned attributes is the lexical order of the object identifiers (OIDs) of each attribute for each object. Privileges Required You must have r (read) permission to the link entry. Examples dcecp> link show /.:/depts/emergency {CDS_CTS 1994-07-11-17:47:59.755+00:00I0.000/00-00-c0-8a-df-56} {CDS_UTS 1994-07-11-17:52:44.698+00:00I0.000/00-00-c0-8a-df-56} {CDS_LinkTarget /.../my_cell.acme_health.org/depts/radiology} {CDS_LinkTimeout {expiration 1995-07-11-00:00:00.000} {extension +10-10:00:00.000I-----}} dcecp> dcecp> link show /.:/gumby -schema {CDS-CTS single} {CDS-UTS single} {CDS-LinkTarget single} dcecp> RELATED INFORMATION
Commands: dcecp(1m), dcecp_clearinghouse(1m), dcecp_directory(1m), dcecp_object(1m). link(1m)
All times are GMT -4. The time now is 10:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy