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

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

shell variables

In this post we learn to manage environment variables in the shell. These variables are often needed by applications. $ dollar sign Another important character interpreted by the shell is the dollar sign $. The shell will look for an environment variable named like the string following the dollar sign and replace it with the … 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

working with linux directories

This module is a brief overview of the most common commands to work with directories: pwd, cd, ls, mkdir and rmdir. These commands are available on any Linux (or Unix) system. pwd The you are here sign can be displayed with the pwd command (Print Working Directory). Go ahead, try it: Open a command line … Read more