Unix Printer Commands (linux; kprinter)

linux understands both the Berkely lpr and the System V (lp) set of printer commands. Most distributions include a graphical-based utility allowing people more flexibility in their printing. kprinter allows people to select which printer to use, and which properties to enable, all with the click of a mouse. It is part of the CUPS … Read more

Unix File system Commands: Files

This article is concerned with the creation, deletion, and manipulation of files. By the end of this section, the user should be able to identify all files within a directory, create new ones, remove others, display the contents of some, rename others, and more. ls: Listing The contents of a directory can be displayed using … 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

control operators

In this post we put more than one command on the command line using control operators. We also briefly discuss related parameters ($?) and similar special characters(&). ; semicolon You can put two or more commands on the same line separated by a semicolon ; . The shell will scan the line until it reaches … 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