Niraj Gupta
This article provides practical examples for 50 most frequently used commands in Linux / UNIX. This is not a comprehensive list by any means, but this should give you a jumpstart on some of the common Linux commands. Bookmark this article for your future reference. Did I miss any frequently...
More ssh examples:5 Basic Linux SSH Client Commands 5. sed command examples When you copy a DOS file to Unix, you could find \r\n in the end of each line. This example converts the DOS file format to Unix file format using sed command. $sed 's/.$//' filename Print file content...
Use kill command to terminate a process. First get the process id using ps -ef command, then use kill -9 to kill the running Linux process as shown below. You can also use killall, pkill, xkill to terminate a unix process. $ ps -ef | grep vim ramesh 7243 7222 9 22:43 pts/2 00...
uname(short for “Unix name”) prints the operative system information, which comes in handy when you know your current Linux version. Most of the time, you’ll be using the-a(–all) flag, since the default output isn’t that useful: ...
Theshellis the command interpretor in an operating system such asUnixorGNU/Linux, it is a program that executes other programs. It provides a computer user an interface to the Unix/GNU Linux system so that the user canrun different commandsorutilities/toolswith some input data. ...
Through several commands, you can learn everything about your CPU in Linux. 1. The Lscpu Command The “lscpu” command line utility provides system CPU-related information under Linux. This command retrieves the CPU’s architecture (threads, CPU caches, CPU family model, cores, number of CPUs...
This includes sockets like Netlink, UNIX datagram, raw and datagram packet sockets, and TCP and UDP sockets. Using ss to see all TCP socket connections Viewing all of our TCP socket connections is very straightforward, only requiring a single option to be specified: ...
While useful in managing your system, the command line is fraught with risks. Running bad commands can cause harm and irrecoverable damage to your system. In this guide, we have compiled a list of some of the riskiest commands that you should not think of executing on your system. ...
Whether you're just getting started or simply curious about the Linux terminal, here are the most common commands that will carry you through your entire time on Linux.