Skip to content

Q-back/ls-rescue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

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"
  1. 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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages