August 2008

The Archives

  • 08.28.08
    Listing files ordered by date cmd | rafacas | (0)
    $ ls -lt Lists files ordered by date starting at the newest one.
  • 08.19.08
    Copying preserving attributes cmd | rafacas | (0)
    $ cp -p /home/rafacas/file1 /tmp Copies preserving attributes (mode, ownership, timestamp) from the indicated files.
  • 08.15.08
    Looking at the End shell | n0str0m0 | (0)
    From time to time we want to see only a few lines near the end of a file. We often use cat or more, but this can be tedious when the file is big (like a very long log file). You can use these commands to read from the end of the file: tac. It works exactly as cat but reading from the end of the file tail. It reads from the end of the file. It has more features than tac. The one I found to be more interesting is the -f flag. It makes tail to continue reading from the ...
  • 08.04.08
    Generating sequence of numbers cmd | rafacas | (3)
    $ seq 1 5 1 2 3 4 5 Generates the sequence of numbers from 1 to 5