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...
Syntax and Options Related Commands What is cc? The cc compiler is the default compiler for Unix systems like Sun solaris. This is a powerful compiler used for compilation of C code. 5 cc Examples 1. A basic example Compiling a C code with cc compiler is very easy. For a very basic c...
More kill examples:4 Ways to Kill a Process – kill, killall, pkill, xkill 27. rm command examples Get confirmation before removing the file. $ rm -i filename.txt 1. It is very useful while giving shell metacharacters in the file name argument. Print the filename and get confirmation be...
Execute commands on files found by the find command $ find -iname "MyCProgram.c" -exec md5sum {} \; Find all empty files in home directory # find ~ -empty More find examples: Mommy, I found it! — 15 Practical Linux Find Command Examples 4. ssh command examples Login...
Syntax and Options Related Commands What is e2fsck? Check ext2, ext3, or ext4 filesystems. 5 e2fsck Examples 1. Check a partition You should be root to execute this command. If not, you’ll get the following error message. $ /sbin/e2fsck /dev/sdb1 ...
19. ftp command examples Both ftp and secure ftp (sftp) has similar commands. To connect to a remote server and download multiple files, do the following. $ ftp IP/hostname ftp> mget *.html To view the file names located on the remote server before downloading, mls ftp command as shown...
awk operates on a per-line basis, executing actions or commands based on patterns defined within the program. Its concise syntax and built-in functionalities make it an invaluable tool for data extraction, formatting, and reporting within the Unix/Linux command-line environment. ...
Tutorial on using ps, a UNIX and Linux command for reporting information on running processes. Examples of searching by user, group, executable name and killing processes.
decisions based on inputs like arguments, files, and environmental variables. Bash provides mechanisms for creatinglogical expressionswhich resemble mathematical equations. These logical expressions can be evaluated until they are either true or false. In fact,trueandfalseare both simple Bash commands!
更多示例:Mommy, I found it! — 15 Practical Linux Find Command Examples 4. ssh 登录到远程主机 $ ssh-l jsmith remotehost.example.com 调试ssh客户端 $ ssh -v-l jsmith remotehost.example.com 显示ssh客户端版本 $ ssh -V 更多示例:5 Basic Linux SSH Client Commands ...