https://github.com/q-back/ls-rescue
did you delete something accidentaly in your Linux? Or maybe you regret that you unpacket tar? Luckily you have ls output before you did it.
https://github.com/q-back/ls-rescue
linux-tools
Last synced: 10 months ago
JSON representation
did you delete something accidentaly in your Linux? Or maybe you regret that you unpacket tar? Luckily you have ls output before you did it.
- Host: GitHub
- URL: https://github.com/q-back/ls-rescue
- Owner: Q-back
- License: apache-2.0
- Created: 2017-12-01T16:36:05.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-06T09:25:59.000Z (about 8 years ago)
- Last Synced: 2023-10-26T12:39:17.114Z (over 2 years ago)
- Topics: linux-tools
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ls-rescue
## Installation
This tool will be useful probably only for advanced linux users, so there is no package for it.
Maybe someday I'll create script that automates instalation, but for now:
1. Clone this repo: `git clone https://github.com/Q-back/ls-rescue/`
2. Add alias to your `.bashrc` or whatever your distro uses:
* `nano ~/.bashrc`
* add (e.g to the end of file) line: `alias ls-rescue="path/to/ls-rescue.py"`
3. Enjoy.
## Usage
* To diff two ls outputs from files
* save your ls before and after your mistake to 2 separate files
* run `ls-rescue -f ls1_file ls2_file`.
* To diff two ls outputs normally
* run `ls-rescue`
* input first ls output
* input second ls output
You'll see what changed.