Jump to content

Open file found with 'find' command in linux


Maze

Recommended Posts

 

 

 

 

This is probably an easy one, but I can't figure it out and it's pretty much not searchable.

 

on a linux-machine i have installed filezilla

 

the filezilla runs pretty well and all is ok.

 

now i need to have the passwd that i have stored years ago. The passprhase is stored in a plain in a file called sitemanager.xmlfile

 

 

I want to find that file and open it with a terminal command.

 

find . -name *.sitemanager

well i thought that this will return the file I'm looking for. Now how do I open it automatically, without typing the name?

 


	find . -name *sitemanager.xm | open

This doesn't work. It says it doesn't found the open command.

 

 

question: why it does not work on opensuse?

 

should i use any other command - eg the following:

 


	find . -name *xyz | xargs open

or

 

find . -name *sitemanager.xml | xargs open

or


	find . -name *.xyz -exec open {} \;

and

 

find . -name *.xyz -exec open {} \; .

any and all help will be greatly appreciate

 

again: what is wanted and needet is to find out the passphrase in the filezilla-configuration

Link to comment
Share on other sites

So rather than just take 5 seconds to copy and paste the location given by find into your favorite editor and open the file, you post here and wait for an answer?

 

Anyway, I'm not aware of any 'open' command. You'd have to choose which editor you want to open the file in and use the proper command for that editor. For example:

find ./ -name 'blah' -exec vim {} \;
  • Like 1
Link to comment
Share on other sites

hello dear kicken

many many thanks for the hints - well i looged as root
 

but i had no luck with your command

 

i did also the  following

 

linux-70ce:/home # cd..
linux-70ce:/ # grep Pass ~/.filezilla/sitemanager.xml
grep: /root/.filezilla/sitemanager.xml: Datei oder Verzeichnis nicht gefunden
linux-70ce:/ # grep Pass ~/.filezilla/sitemanager.xml
grep: /root/.filezilla/sitemanager.xml: Datei oder Verzeichnis nicht gefunden
linux-70ce:/ # grep Pass ~/.filezilla/filezilla.xml
grep: /root/.filezilla/filezilla.xml: Datei oder Verzeichnis nicht gefunden
linux-70ce:/ #

all the results were telling that i have the directory or the file cannot be found...

well this is so funny -

a. i have installed filezillla on the machine
b. the passwd ( or passphrase)  is written in a xml-file
c- it is written in plaintext

by the way - there are more things to do:

eg - the the next step i to tomorrow.

Use "ls -l /pathtofile/file to print its permissions and find out why.

well i guess that this is a key step



i do more tests on this tomorow
Use "ls -l /pathtofile/file to print its permissions and find out why.

untill then

i think that i have to find this - the passphrase is somewhere on the machine.

i am pretty sure that we are very very close.

btw - i also tried out the followning
 

hope to see you again here ...

 

many many greetings

Link to comment
Share on other sites

Are you talking about a Filezilla server or client?

 

Also, the find command returns multiple results, not sure how it would work with a command to open it. It would probably just open the last or the first one? (I'm not a Linux expert).

 

And do you have a graphic interface where you can see the 'stars' where the password should be? If yes, maybe there's a tool that would 'unstar' the password.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.