Display the most active ethernet interface

A repository for the most elegant and useful UNIX commands. Great commands can be shared, discussed and voted on to provide a comprehensive resource for working from the command-line » commandlinefu.com | commandlinefu.com

20 de noviembre de 2022 · 1 min · 33 palabras · Nacho Cano

Scripts and programs should skip having extensions like '.sh' and '.bash'

Scripts and programs should skip having extensions like ‘.sh’ and ‘.bash’ » utcc.utoronto.ca | utcc.utoronto.ca

28 de octubre de 2022 · 1 min · 15 palabras · Nacho Cano

What the #! shebang really does and why it's so important in your shell scripts

What exactly happens when we run a file starting with #! (aka shebang), and why some people use #!/us… » DEV Community | dev.to

28 de noviembre de 2020 · 1 min · 24 palabras · Nacho Cano

Slow Down Command Output

ls -alt|awk » commandlinefu.com | commandlinefu.com

13 de febrero de 2020 · 1 min · 6 palabras · Nacho Cano

10 Tools To Add Some Spice To Your UNIX/Linux Shell Scripts

With the following tools, you can build powerful, interactive, user-friendly UNIX/Linux bash shell scripts. » nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format | cyberciti.biz

14 de enero de 2018 · 1 min · 27 palabras · Nacho Cano

Quickly navigate your filesystem from the command-line

Like many others, I spend most of my day behind a computer. In order make the most of it (and to keep my body from complaining too much), I try to maintain an optimized setup. For example, I code in Vim, browse with Vimperator, and move windows around in i3. Another common task is filesystem navigation. I prefer to use the command-line for this, but typing cd ~/some/very/deep/often-used/directory over and over again does become cumbersome. ...

7 de septiembre de 2014 · 1 min · 80 palabras · Nacho Cano

The Command Line is Your Best Friend

Yes, it’s that white (or green) on black screen, where mysterious text flows and strange commands execute. I know great programmers who never use the CLI; however, I also know basic computer users who do everything in the CLI instead of the graphical user interface (GUI). They have console applications to browse the web and file system, read mail, view images and edit text. They even watch YouTube videos and read PDF files without a GUI! It’s up to each person to find his or her best workflow. Some prefer the GUI, while others enjoy the CLI. ...

3 de abril de 2013 · 1 min · 102 palabras · Nacho Cano

Variables variables en Bash

Las variables variables se utilizan cuando queremos tener nombres de variables que puedan usarse y modificarse de forma dinámica. PHP permite su uso de forma directa: <?php $a = 'hello'; ?> Una variable variable toma el valor de una variable y lo usa para el nombre de la variable. Podemos utilizar “hello” como nombre de variable utilizando dos signos de dólar: <?php $$a = 'world'; ?> En este punto tenemos dos variables, $a que contiene “hello” y $hello que contiene “world”. Así, las siguientes instrucciones escriben “hello world”: ...

29 de junio de 2011 · 1 min · 181 palabras · Nacho Cano