≡ Menu

Linux tac, rev, paste, and join commandIn this article, let us review how to use Unix tac command, rev command, paste command, and join command with practical examples.

[continue reading…]

Question: Is it possible for me to combine multiple sed commands? Can I combine two sed commands and execute it as single sed command?

Answer: In our previous articles we learned sed with single commands — printing, deletion, substitute and file write.

In this article let us review how to combine multiple sed commands using option -e as shown below.

[continue reading…]

Do You Like to Perform Vi Style Editing in BASH Command Line ?

Question: I like Vi style of editing and I’m very comfortable with Vi commands. How do i use Vi style line editing in Unix command line?

Answer: Execute set -o vi at your Unix shell to enable Vi style editing.

[continue reading…]

Install, Upgrade, View, Delete Packages on Ubuntu and DebianDebian based systems (including Ubuntu) uses apt-* commands for managing packages from the command line.

In this article, using Apache 2 installation as an example, let us review how to use apt-* commands to view, install, remove, or upgrade packages.

[continue reading…]

Vim editor Increment or Decrement Numbers and DateFrom Vim editor, move your cursor to a number and press Ctrl+A to increase the number or Ctrl+X to decrease the number.

  • Ctrl+A to increase the number under cursor
  • Ctrl+X to decrease the number under cursor

[continue reading…]

Unix Shell Tips: Change Login Shell From Bash to Others

Question: How do I find out what Unix shell I’m currently running? Can you also explain how can I change my Unix shell both temporarily and permanently? (For example, from bash to tsh).

Answer: You can achieve these using $0, exec, chsh -s. In this article, let us review how to do these in detail.

[continue reading…]

Question: I would like to understand the basics of how to write and execute a pascal program on Linux OS. Can you explain it with a simple example?

Answer: In this article, let us review very quickly how to write a basic Hello World pascal program and execute *.p or *.pas program on Linux or Unix OS.

[continue reading…]

Sed Examples for writing to a file on LinuxThis article is part of Unix Sed Tutorial series. In previous articles, we discussed about sed print operation , sed delete operation and sed find and replace.

In this article, let us review how to extract part of one file and write it to another file using sed.

[continue reading…]