![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with dd command or maybe AFS problem | Anta | Shell Programming and Scripting | 0 | 08-25-2006 10:10 AM |
| SSH Problem auth problem | budrito | UNIX for Advanced & Expert Users | 1 | 03-17-2004 10:12 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
compession problem
I want to compress all the files in a given directory. My problem is that there is a file linked to another file in this directory. When I run the command
compress dir/* I get an error because of the link How do I compress all files except the ones that are linked?? |
|
||||
|
I still get error messages
-rw-r----- 1 t588331 devel 155 Nov 08 10:28 grp_billing.200111
-rw-r--r-- 2 t588331 devel 29 Nov 08 10:27 frank -rw-r--r-- 2 t588331 devel 29 Nov 08 10:27 todd $ find /home/t588331/unixtest -type f -exec compress {} \; /home/t588331/unixtest/todd: This file already has 1 links. It is not changed. /home/t588331/unixtest/frank: This file already has 1 links. It is not changed. It doesn't recognize the linked files. |
|
||||
|
Number listed in "ls -l" between permissions and user is number of "hard" links, not symbolic/soft links.
Try ls -li to obtain INODE numbers of the frank and todd files and find them second "real" names in another directories by : find <root_of_this_filesystem> -inum .... [see man] "compress" wants to change name to frank.Z and todd.Z and it's not possible, because "compress" doesn't know in which directory are second names located. I'm afraid that only solution is remove the second links ... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|