Unix/Linux command - search for a file
#1
Scooby Regular
Thread Starter
I have a Linux box (RH kernel) and I need to locate a file.
What's the equivelant of "dir lic* /s" ???
no doubt, it'll be about 100 characters long
Stefan
What's the equivelant of "dir lic* /s" ???
no doubt, it'll be about 100 characters long
Stefan
#3
Scooby Regular
As root run 'updatedb', RH may well do that in cron, dunno. Then you just need to 'locate <file>'. updatedb builds a database of all files, so newly installed stuff wont show unless updatedb is run.
#4
Scooby Regular
Thread Starter
cheers guys, the find command found the two I was after.
I'll admit that wasn't difficult; I'm just mentally scared from having to figure out tar switches in a previous life
Stefan
I'll admit that wasn't difficult; I'm just mentally scared from having to figure out tar switches in a previous life
Stefan
#5
Scooby Regular
Thread Starter
OK, next question. Need to copy these files from one box to another. Both run RH, but have no net access and limited commands (it's a secure build of RH e.g. no updatedb command)
How do you mount the floppy and copy files?
Stefan
How do you mount the floppy and copy files?
Stefan
#7
Scooby Regular
Thread Starter
yeah, I'd like to be lazy too, but I can't install anything on these boxes. It's a firewall product that just happens to use a RH kernel. It doesn't even have ping installed
Stefan
Stefan
Trending Topics
#8
Scooby Regular
Thread Starter
OK, after a quick nosey around Google I found these commands, which thankfully worked for me.
mount -t /dev/fd0 /mnt/floppy
cp <filename> /mnt/floppy
umount /mnt/floppy
Stefan
mount -t /dev/fd0 /mnt/floppy
cp <filename> /mnt/floppy
umount /mnt/floppy
Stefan
#9
in that case, on redHat:
mount /dev/fd0
ls /mnt/floppy
This assumes you have one floppy and its listed in /etc/fstab. You may need to be superuser to do this on some sysems.
You beat me to it :-)
[Edited by Zanlin - 7/29/2003 12:22:14 PM]
mount /dev/fd0
ls /mnt/floppy
This assumes you have one floppy and its listed in /etc/fstab. You may need to be superuser to do this on some sysems.
You beat me to it :-)
[Edited by Zanlin - 7/29/2003 12:22:14 PM]
#10
Scooby Regular
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes
on
0 Posts
if they can see each other then scp would be ideal. ( assuming ssh installed )
Steve
scp filename user@machine2:/path/to/where/you/want/it
Steve
scp filename user@machine2:/path/to/where/you/want/it
Thread
Thread Starter
Forum
Replies
Last Post