Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am studying git and how it works with file system. I installed application called terminator, which allows me to open multiple terminals. I want to run git commands at the left terminal and want to see at right terminal real time updates of file system. How it is possible?

enter image description here

share|improve this question
    
By "real time updates" do you mean modifications in existing files, creation/deletion of files, both or something else? –  jackweirdy Dec 1 '12 at 19:20
    
yes, creation and deletion of files, I would prefer something that looks like a tree. –  viakondratiuk Dec 2 '12 at 9:57

1 Answer 1

up vote 2 down vote accepted

You can use the watch command for that. In the default setting it executes the trailing command every 2 seconds. The time can be specified with -n.

To use it to monitor your filesystem you may either use ls -1 (if you want to see only one directory) or find (if you also want to watch subdirectories) as the command.

To check for changes in /tmp and all of its subdirectories in (near)real time execute watch -n 0.1 find /tmp. An interval of 0.1 seconds is the fastest, watch can go and should be sufficient for any human. And I assume you are human, aren't you?

share|improve this answer
    
You give me a clue, but I found tree command, which prints file system snapshot like a tree. –  viakondratiuk Dec 2 '12 at 10:12
    
Glad I could help :) –  sumpfomat Dec 12 '12 at 17:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.