Find-L: Auffinden aller (Nicht-) leeren Dateien in einem Verzeichnis

June 27th, 2009 by brutal-billig,

Das Erstellen einer leeren Datei unter Linux ist recht einfach. Wenn eine Datei nicht existiert können Sie einfach eine leere Datei mit dem Befehl Touch erstellen.

$ Touch DATEI
$ Ls-l-Datei
Read the full story »

More on Inserting Arguments from Previous Commands

May 16th, 2009 by ,

I previously blogged on using the shortcut Alt + dot to insert the last argument from the previous command . Suppose you don’t want the last argument. Instead, you want to insert the first, second, or third argument of a previous command.

Open a file from the command line using its default application

May 9th, 2009 by ,

Windows users are familiar with the concept of file association. When you double click a file (say, cisco.doc), Windows examines the file name extension (doc), and opens the file using the default program associated with that extension(Office)

Find all (non-)empty files in a directory

May 5th, 2009 by ,

Creating an empty file in Linux is easy. If a-file does not exist, create the file and make it empty by simply: $ touch a-file $ ls -l a-file -rw-r–r– 1 peter peter 0 2009-05-02 20:15 a-file Finding all empty files in a directory can also be done using a single command. Ditto for non-empty files.

A surefire shortcut to Insert the Last Argument of the Last Command

May 2nd, 2009 by ,

Sometimes, in the Linux command-line world, a seemingly trivial technique can turn out to be tremendously useful. Before I discover the Alt-dot (.) shortcut, I type !$ to insert the last argument of the previous command