Skip to content
  • About

Surviving the Command Line

vim, bash, and stuff

Featured
Posted in bash

Just curious about visitors

Posted on January 19, 2017 by Daniel LeMath

Share this:

  • Twitter

Like this:

Like Loading...
Posted in bash

Watching a bash Script at Work

Posted on January 29, 2017 by Daniel LeMath

Sometimes it is helpful to watch what a bash script is actual doing. This can be done with the parameter -x:

$ bash -x <script>

Continue reading “Watching a bash Script at Work” →

Share this:

  • Twitter

Like this:

Like Loading...
Posted in Linux commands

sort: Change Directory for Temporary Files

Posted on January 20, 2017January 20, 2017 by Daniel LeMath

To change the directory for temporary files during sort use the parameter -T:

$ sort -T /var/big_filesystem file_to_sort

This can be helpful, if you sort a big file and the default directory (/tmp) is full or too small.

Share this:

  • Twitter

Like this:

Like Loading...
Posted in bash

Check the Syntax of a Shell Script

Posted on January 19, 2017January 21, 2017 by Daniel LeMath
$ bash -n <script>

Does not execute the script, checks the syntax.

Share this:

  • Twitter

Like this:

Like Loading...
Posted in vim

Increase and Decrease Numbers in vim

Posted on January 18, 2017January 19, 2017 by Daniel LeMath

Set the cursor onto a number and press Ctrl-A to increase it or Ctrl-X to decrease it.

Share this:

  • Twitter

Like this:

Like Loading...

Categories

bash Linux commands vim

Tags

bash number poll script sort vim

Follow me on Twitter

My Tweets

Archives

  • January 2017

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • Surviving the Command Line
    • Already have a WordPress.com account? Log in now.
    • Surviving the Command Line
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
%d bloggers like this: