browsing the windows machines and their shares – listing

2011-04-30 1 min read Learning Uncategorized

 

smbtree is a very nice command to check all the machines that are present in the LAN (your connected network). For this to work you may need to look at this article also.

 

  <td>
    <div class="text codecolorer">
      smbtree -U <strong>username
    </div>
  </td>
</tr>
1
Enhanced by Zemanta

function for copy files with progress bar (using pv – pipe viewer)

2010-11-11 1 min read Bash Linux

function for copy files with progress bar (using pv – pipe viewer)

  <td>
    <div class="text codecolorer">
      &nbsp;cp_p() { if [ `echo "$2" | grep ".*/$"` ]; then pv "$1" > "$2""$1"; else pv "$1" > "$2"/"$1"; fi; }
    </div>
  </td>
</tr>
1

dont have to type new file name (it copy file under same name) and dont have to use ‘/’ in the end of destination folder (but you can if u want, its idiot proof)

Continue reading