What is the uname command in Linux
The uname command is a Linux command-line tool that is used to retrieve and print the system information, such as the kernel name, release version, processor type, and more. It is a versatile command that can be used for different purposes, including debugging, system administration, and programming.
In Linux, this command is pre-installed and readily available for most distros. It can be accessed...
10 Command Line Tricks Every Linux User Should Know
The command line interface (CLI) is an essential tool for any Linux user. Whether you are a seasoned developer or a Linux newbie, mastering the command line can help you work faster and more efficiently.
In this article, we will discuss ten common and useful tips when using the Linux command line, complete with examples to help you get started.
Autocompletion:
Tab completion is a feature...
Quickly Reverse File Contents With This Linux Command
Most people who use Linux operate in a graphical user interface (GUI), which provides easy-to-use menus and icons for common tasks. However, many power users prefer to work in the Linux command line, as it provides a more powerful and efficient way to interface with the operating system. Here is a cheat sheet that covers the most commonly used Linux commands.
This article demonstrates the use of...
Add Timestamps Using the Ts Command In Linux
It can be useful to add current timestamp to each of the lines in files through the Linux command-line. ts (timestamp input) is a handy utility and a part of moreutils package in Linux which does just that. With ts, you can pipe the input file and directly add timestamps to each of the lines. This example uses Linux Mint to show how to use ts.
Installing ts:
First, install ts as it is not installed...
Quickly Create Multiple Directories And Files With Common Terms Using Linux Command Line
Creating multiple files and directories that have common terms or patterns can be done quickly from the Linux command line. For this, the braces {} are useful.
Multiple directories with common terms:
Example: To create directories named DailyReport2020, WeeklyReport2020, QuarterlyReport2020, MonthlyReport2020 and YearlyReport2020, there is no need to use mkdir command separately for each of them.
Instead,...
Use Look Command To Search For Lines From Linux Terminal
If you want to search for lines that start with a specific string / words, then look command will be useful. (There are other useful Linux command line tools like aspell that can check for typos which are easy to use and quick.)
Also unlike using grep to find instances of specific words, look is used only for finding lines that begin with a specified string or letters.
Using it is simple, open...