Tutorials

  • Files in Linux

    1.0 Files

    There are two basic concepts in Linux - processes and files. The processes do things and files keep all the important data. An efficient filesystem is important for an operating system. When Unix was conceived around 1969-70, several design decisions were taken to simplify the filesystem. It was thought that if something was simple ...

  • Connecting 7" touchscreen display to Raspberry Pi 4B

    1.0 Introduction

    Raspberry Pi 4B has a Display Serial Interface (DSI) port for connecting a Raspberry Pi touchscreen display using a ribbon cable. In this post we will look at the process of connecting the Raspberry Pi 7" touchscreen display with the Raspberry Pi 4B single board computer.

    2.0 7" touchscreen display

    The Raspberry Pi ...

  • Uname command with examples

    1. uname command

    The uname command prints information about the system. uname is a portmanteau word made up from "unix" and "name". uname can be called from the command line in Linux as,

    uname ...
    

    The most common way to use uname ...

  • Getting started with Raspberry Pi

    1.0 Raspberry Pi

    Raspberry Pi 4 Model B

    Raspberry Pi is a popular single board computer developed by the Raspberry Pi Foundation in the U.K. Raspberry Pi 4 Model B (Pi4B) ...

  • systemd – System and service manager in Linux

    1.0 Introduction

    systemd is the newer init system used in most Linux distributions since 2015. The first widely used init system was the System V init process, sysvinit. Ubuntu introduced the Upstart init system with Ubuntu 6.10 in 2006. Ubuntu fully migrated to systemd with Ubuntu 15.04 in 2015. Indeed, we ...

  • Syslog

    1.0 Syslog

    Syslog is a protocol for conveying event notification messages.

    Syslog was first developed by Eric Allman for logging as a part of the Sendmail project in the 1980s. It soon became a de-facto standard for logging on Unix-like systems. Syslog was formally specified in RFC 3164 in 2001 as "The BSD syslog ...

  • Find user login history – last and lastb commands in Linux

    Login

    1.0 last and lastb

    The last command gives a chronological list of user logins in a Linux system for a period of time. The lastb commands gives a similar list of failed logins ...

  • tmpfs in Linux

    tmpfs

    1.0 tmpfs

    tmpfs is a filesystem that resides in the main memory of a Linux system. In the case of disk files, a file is first fetched into the kernel pagecache and the delivered to the requesting process. The fetch ...

  • Cut command in Linux

    1.0 cut

    Cut command in Linux

    The cut command cuts sections of each line of input files and writes it on its standard output. It is mostly used for taking out a few columns from the ...

  • tr Command in Linux

    1.0 tr

    The tr command is a filter which reads the standard input, translates or deletes characters and writes on its standard output. The tr command syntax is,

    tr 
    

    tr transliterates characters from SET1 into corresponding characters of SET2 in input and writes ...

  • Comm Command in Linux

    1.0 comm

    The comm command compares two sorted files and gives output in three columns. The first column has lines which are present only in the first file. The second column contains lines which are present only in the second file. The third column gives the lines which are common to both files. ...

  • Uniq command in Linux

    1.0 uniq

    The uniq command is a filter for finding unique lines in input. It reads input, suppresses duplicates and prints unique lines in its output. Used with the -D option, we can do the inverse and print the duplicate lines only. The input must be sorted ...

  • Sort command in Linux

    1.0 Sort

    The sort command is for sorting lines in text files. For example, if we have a file names, we can sort it with the sort command,

    $ cat names
    John Doe
    Jane Doe
    John Roe
    Richard Roe
    Tommy Atkins
    Max Mustermann
    Erika Mustermann
    Joe Bloggs
    $
    $ sort names
    Erika Mustermann
    Jane Doe
    Joe Bloggs
    John Doe
    John Roe
    Max Mustermann
    Richard Roe
    Tommy Atkins
    

    The words in ...

  • Awk Tutorial

    1.0 awk

    awk is a filter which takes the input and gives output after matching desired patterns and doing processing linked to matched patterns. awk is well suited for processing voluminous raw text data and producing statistical reports from it.

    awk is named ...

  • Sed command in Linux

    1.0 sed

    sed is a stream editor that accepts a list of commands and input file names. It applies the commands one by one on each line of input and writes the resulting lines on the standard output. The commands are separated by newlines.

    2.0 sed ...