Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I recently ran e2fsck on my system disk and have quite a few number of files in the lost+found. Here is an example of a file, I dont know what type of file this is so don't know where this should be placed:
Code:
#12304
#!/bin/sh
config() {
NEW="$1"
OLD="`dirname $NEW`/`basename $NEW .new`"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config usr/lib/perl5/5.12.3/i586-linux-thread-multi/perllocal.pod.new
( cd usr/man/man1 ; rm -rf psed.1.gz )
( cd usr/man/man1 ; ln -sf s2p.1.gz psed.1.gz )
( cd usr/man/man1 ; rm -rf pstruct.1.gz )
( cd usr/man/man1 ; ln -sf c2ph.1.gz pstruct.1.gz )
#12309
Code:
( cd usr/bin ; rm -rf python2 )
( cd usr/bin ; ln -sf /usr/bin/python2.7 python2 )
( cd usr/bin ; rm -rf python-config )
( cd usr/bin ; ln -sf python2.7-config python-config )
( cd usr/lib ; rm -rf libpython2.7.so )
( cd usr/lib ; ln -sf libpython2.7.so.1.0 libpython2.7.so )
( cd usr/lib/pkgconfig ; rm -rf python.pc )
( cd usr/lib/pkgconfig ; ln -sf python-2.7.pc python.pc )
#12724
Code:
( cd usr/bin ; rm -rf altertrack )
( cd usr/bin ; ln -sf slacktrack altertrack )
#12728
Code:
( cd usr/man/man1 ; rm -rf vala-gen-introspect.1.gz )
( cd usr/man/man1 ; ln -sf vala-gen-introspect-0.10.1.gz vala-gen-introspect.1.gz )
( cd usr/man/man1 ; rm -rf vapigen.1.gz )
( cd usr/man/man1 ; ln -sf vapigen-0.10.1.gz vapigen.1.gz )
( cd usr/man/man1 ; rm -rf valac.1.gz )
( cd usr/man/man1 ; ln -sf valac-0.10.1.gz valac.1.gz )
( cd usr/bin ; rm -rf vala )
( cd usr/bin ; ln -sf vala-0.10 vala )
( cd usr/bin ; rm -rf vala-0.10 )
( cd usr/bin ; ln -sf valac-0.10 vala-0.10 )
( cd usr/bin ; rm -rf vapigen )
( cd usr/bin ; ln -sf vapigen-0.10 vapigen )
( cd usr/bin ; rm -rf valac )
( cd usr/bin ; ln -sf valac-0.10 valac )
( cd usr/bin ; rm -rf vapicheck )
( cd usr/bin ; ln -sf vapicheck-0.10 vapicheck )
( cd usr/bin ; rm -rf vala-gen-introspect )
( cd usr/bin ; ln -sf vala-gen-introspect-0.10 vala-gen-introspect )
( cd usr/lib ; rm -rf libvala-0.10.so.0 )
( cd usr/lib ; ln -sf libvala-0.10.so.0.0.0 libvala-0.10.so.0 )
( cd usr/lib ; rm -rf libvala-0.10.so )
( cd usr/lib ; ln -sf libvala-0.10.so.0.0.0 libvala-0.10.so )
#12730
Code:
( cd usr/lib ; rm -rf libORBitCosNaming-2.so )
( cd usr/lib ; ln -sf libORBitCosNaming-2.so.0.1.0 libORBitCosNaming-2.so )
( cd usr/lib ; rm -rf libORBitCosNaming-2.so.0 )
( cd usr/lib ; ln -sf libORBitCosNaming-2.so.0.1.0 libORBitCosNaming-2.so.0 )
( cd usr/lib ; rm -rf libORBit-2.so )
( cd usr/lib ; ln -sf libORBit-2.so.0.1.0 libORBit-2.so )
( cd usr/lib ; rm -rf libORBit-2.so.0 )
( cd usr/lib ; ln -sf libORBit-2.so.0.1.0 libORBit-2.so.0 )
( cd usr/lib ; rm -rf libORBit-imodule-2.so )
( cd usr/lib ; ln -sf libORBit-imodule-2.so.0.0.0 libORBit-imodule-2.so )
( cd usr/lib ; rm -rf libORBit-imodule-2.so.0 )
( cd usr/lib ; ln -sf libORBit-imodule-2.so.0.0.0 libORBit-imodule-2.so.0 )
A bunch of files like this, I wonder where these are originally from?
Thanks,
Ted
Thanks rknichols, I sorted out those files, now I am left with a few none txt files, these are probably executable files. Because I can't read them properly in text editor. Can anyone give me a clue how I should identify where they belong?
thanks fred, but what do you mean by that?
Thanks,
Ted
There is a file command that is pretty good about identifying file types and a strings command that will find and display whatever printable strings occur in a file. The strings command defaults to sequences of 4 or more printable characters. You'll probably want to specify a somewhat larger minimum length, e.g.: "strings -n 8".
Hi, I used file command to determine the type of file, output shows data, I checked the man, data seems to be "anything other than text or executable file" I am guess that they are media files then:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.