Apt-get Command

Now    we    are    going    to    talk    about    how    you    can    install    individual    programs.    The    thing  that    you    have   to    remember    with    Linux    is    that    this    is    an    open    source    world.    Most    of  the     software     is     free,     or     you     pay     for     it     in     weird     ways   … Read more

sudo Command

The     first     command     that     we     need     to     talk     about     before     you     start     doing     any     of     the  other    commands    is    “sudo.”    Sudo    basically    means    “super    user    do.”    In    the    previous  post,     we     discussed     how     different     distributions   … Read more

How to View Linux CPU Information

To view information about your CPU, use the lscpu command as it shows information about your CPU architecture such as number of CPU’s, cores, CPU family model, CPU caches, threads, etc from sysfs and /proc/cpuinfo. [centos7@localhost ~]$ lscpu Architecture:               x86_64 CPU op-mode(s):        32-bit, 64-bit Byte Order:                 Little … Read more

How to View Linux System Information

To know only system name, you can use uname command without any switch will print system information or uname -s command will print the kernel name of your system. root@localhost ~ $ uname Linux To view your network hostname, use ‘-n’ switch with uname command as shown. root@localhost ~ $ uname -n localhost.localdomain To get … Read more

How to Disable SELinux on CentOS

SELinux or Security-Enhanced Linux is a mechanism or security module that provides access control security policies. In simple terms, it’s a feature or service used for restricting users to certain policies and rules set by the systems administrator. How to Temporarily Disable SELinux on CentOS Before you start disabling SELinux on CentOS , it’s prudent … Read more

shell embedding and options

shell embedding Shells can be embedded on the command line, or in other words, the command line scan can spawn new processes containing a fork of the current shell. You can use variables to prove that new shells are created. In the screenshot below, the variable $var1 only exists in the (temporary) sub shell. You … Read more

commands and arguments(shell expansion)

arguments One of the primary features of a shell is to perform a command line scan. When you enter a command at the shell’s command prompt and press the enter key, then the shell will start scanning that line, cutting it up in arguments. While scanning the line, the shell may make many changes to … Read more

working with files

In this post we learn how to recognise, create, remove, copy and move files using commands like file, touch, rm, cp, mv and rename. all files are case sensitive Files on Linux (or any Unix) are case sensitive. This means that FILE1 is different from file1, and /etc/hosts is different from /etc/Hosts (the latter one … Read more