User Tools

Site Tools


useful_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
useful_commands [2012/10/06 12:51]
85.218.109.130
useful_commands [2012/10/06 17:39]
85.218.109.130 [xterm: keep open]
Line 3: Line 3:
   * return the last edited file    * return the last edited file 
  
-<​code>​ls -ct1 | head -1</​code>​+<​code ​bash>ls -ct1 | head -1</​code>​
  
 broken into elements: broken into elements:
  
-<​code>​ls -c #sorts by ctime, newest first+<​code ​bash>ls -c #sorts by ctime, newest first
 ls -clt #shows ctime and sorts by ctime ls -clt #shows ctime and sorts by ctime
 ls -cl #show ctime, sorts by name ls -cl #show ctime, sorts by name
Line 22: Line 22:
 disown ​  # this is to prevent the finishing shell from closing the xterm disown ​  # this is to prevent the finishing shell from closing the xterm
 </​code>​ </​code>​
 +
 +explained here: http://​stackoverflow.com/​questions/​11668558/​open-several-xterm-windows-from-script-without-closing
useful_commands.txt ยท Last modified: 2012/10/06 17:39 by 85.218.109.130