Hi,
I accidentally deleted a big directory with all its sub-directories and bunch of source code files which I have been developing for about 2 years... What will I do now, how can I retrieve my files, directory hierarchy back ???
If anyone, please HELP ! ! ! ... (4 Replies)
i have the following problem:
use shell script:
Two directories have to be searched for files havin the same name.
then delete these files from one of these directories.
the directory names have to be accepted as command line arguments.
what i have done till now is:
1. run a loop... (1 Reply)
Hello Gurus,
I want to delete only empty files (files with 0 bytes) at once from the local directory. Rightnow I need to go through all the files one by one manually and check the empty files before deleting them. Is there any unix command that finds and deletes empty files in a directory?... (5 Replies)
I have a directory full of text data files.
Unfortunately I need to get rid of the 7th and 8th line from them all so that I can input them into a GIS application.
I've used an awk script to do one at a time but due to the sheer number of files I need some kind of loop mechanism to automate... (3 Replies)
I have a file inside abc/def/ghi directory. let say a.txt
I need to delete this a.txt from abc itself.
I have tried
ls /abc/def/ghi | xargs rm -r
its saying
rm: a.txt non-existent
also tried rm -rf /def/ghi
but in vein. plz help :) (2 Replies)
Hi Friends,
I am new to this , I am working on AIX system and my scenario is to retrive the files from remote system and remove the files from the remote system after retreving files. I can able to retrieve the files but Can't remove files in remote system. Please check my code and help me out... (3 Replies)
I have 4 files in a directory and want to delete only first 2 files only..
$ ls -ltr
total 640
-rw-r--r-- 1 user other 148779 Oct 12 10:50 file1.xls
-rw-r--r-- 1 user other 148779 Oct 12 10:50 file2.xls
-rw-r--r-- 1 user other 148779 Oct 12 10:50 file3.xls... (4 Replies)
I have a qnap TS259 that is running ubuntu. Have successfully setup back scripts that are initiated by cron.
I would like to create a couple scrypts that would operate on the recycle bins for both drives. Just want to be able to run the script manually that would walk through both directories... (13 Replies)
Hi Folks,
I have a directory in unix that is /usr/local/pos contain the folowing directoreis ..that is
dir1
dir2
dir3
now I want to delete only dir2 please advise how to remove the directory dir 2 ..that is rm command and how to use it , and second if I want to zip the dir3 please... (1 Reply)
Discussion started by: punpun66
1 Replies
LEARN ABOUT FREEBSD
ldd
LDD(1) BSD General Commands Manual LDD(1)NAME
ldd -- list dynamic object dependencies
SYNOPSIS
ldd [-a] [-v] [-f format] program ...
DESCRIPTION
The ldd utility displays all shared objects that are needed to run the given program or to load the given shared object. Contrary to nm(1),
the list includes ``indirect'' dependencies that are the result of needed shared objects which themselves depend on yet other shared objects.
Zero, one or two -f options may be given. The argument is a format string passed to rtld(1) and allows customization of ldd's output. If
one is given, it sets LD_TRACE_LOADED_OBJECTS_FMT1. If two are given, they set LD_TRACE_LOADED_OBJECTS_FMT1 and
LD_TRACE_LOADED_OBJECTS_FMT2, respectively. See rtld(1) for details, including a list of recognized conversion characters.
The -a option displays the list of all objects that are needed by each loaded object. This option does not work with a.out(5) binaries.
The -v option displays a verbose listing of the dynamic linking headers encoded in the executable. See the source code and include files for
the definitive meaning of all the fields.
EXAMPLES
The following is an example of a shell pipeline which uses the -f option. It will print a report of all ELF binaries in the current direc-
tory, which link against libc.so.6:
find . -type f | xargs -n1 file -F ' ' | grep ELF | cut -f1 -d' ' | xargs ldd -f '%A %o
' | grep libc.so.6
SEE ALSO ld(1), nm(1), rtld(1)HISTORY
A ldd utility first appeared in SunOS 4.0, it appeared in its current form in FreeBSD 1.1.
The -v support is based on code written by John Polstra <jdp@polstra.com>
BSD May 15, 2008 BSD