System administration: Difference between revisions

Jump to navigation Jump to search
Line 322: Line 322:


<source lang="bash">
<source lang="bash">
ls -l | awk '{print $3 " " $9}'
$ ls -l | awk '{print $3 " " $9}'
</source>
 
== Make a backup without typing the full path twice ==
 
To make a backup without typing the full path twice with the suffix .orig
 
<source lang="bash">
$ cp /long/path/to/file/name{,.orig}
</source>
</source>

Navigation menu