Linux file cataloger-disk cataloger | Survival Monkey Forums

0
20

linux off line file/data finder.
To make a kind of disk cataloger to find where its stored.
Still surprised there are no good catalogers for linux
So i made something usable for the command line.
the first step is to collect the data from hard disk usb or anything readable and store it. one time type mkdir A-diskdrive-map in your home dir. change nameuser with your username and for every data source the dataname.

the code is ” ls -R1 /home/name user |sed -e ‘s/^.*nameuser nameuser //’ > //home/nameuser/A-diskdrive-map/name dataname.txt ” and for usb or external is mostly
“ls -R1 /media/jan/namedevice/ | sed -e ‘s/^.*nameuser nameuser //’ > //home/nameuser/A-diskdrive-map/namedata.txt like usb1.txt”
This write the data in the A-diskdrive-map where you can load it in any editor long as that have a search.

The to make it easy to find the directory the showed data is in we do the next step that add # after the directory name in the dataname.txt file.
that code ” sed -i ‘s/A-HOME/A-HOME###### ##### ####### *****************/g’ /home/nameuser/A-diskdrive-map/namedata.txt “

Hope this help to find things :)

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here