Another tip, which is more of a terminal shortcut and may not work everywhere but still very handy. To use the last argument of the last ran command, use theAlt+.keys. Viewing a deeply nested directory with ls command and would like to switch into it? Instead of typing everything, jus...
You have been scouring the web looking for tutorials, but you see that there are two different versions ofPythonin use, and you don’t know which version ofPython is installed on Ubuntuby the installer, or if it installed any modules. Simply run the followingdpkg commandwithgrepas shown: d...
Thechmodcommand reads the above command as follows: #chmod 007 testfile Examples This tutorial is part of the tutorial "Linux file permission Explained with Examples.". Other parts of this tutorial are as follows: Chapter 1Linux File Permission Explained in Easy Language Chapter 2How to...
The Linuxcutcommand lets you extract portions of text from files or data streams. It's especially useful for working with delimited data, such asCSV files. Here's what you need to know. The cut Command Thecutcommand is a veteran of theUnixworld, making its debut in 1982 as part of AT&...
In this tutorial, we’ll go over thedu commandinLinux. “du” stands for disk usage and is used to estimate the amount of disk space used by a given file or directory. In general, it is a handy utility if you want to print out the sizes of all of the files and folders within a...
1. How to Copy a File in Linux One of the basic use of thecpcommand is to copy a file into a current directory. Most of the time users perform this operation to take a backup of the important configuration. For example, we often create a backup copy of/etc/ssh/sshd_config filebefor...
In isolation, the relationship of programs, streams, and commands is very simple. However, when one program must send its results to another, it becomes more complicated. Linux provides thepipecommand, represented by the|symbol, to redirect the standard output from one command to a second comman...
Chapter 01How to Use the help Command in Linux Chapter 02How to Use the man command in Linux Chapter 03How to use the info and pinfo commands in Linux Conclusion Linux shell provides two types of commands: internal and external. Internal commands are part of the shell. External commands ar...
The syntax for ln command is simple: ln [option] target_file link_name Let me show you some examples of using the ln command to create links in Linux. 1. Create hard link to a file To create a hard link to a file, you can use the ln command without any options like this: ...
Linux的常用命令 有人说Shell脚本是命令堆积的一个文件,按顺序去执行。还有人说想学好Shell脚本,要把Linux上各种常见的命令或工具掌握了,这些说法都没错。由于Shell语言本身在语法结构上比较简单,是面向过程编程,想实现复杂的功能有点强人所难!而且Shell本身又工作在Linux内核之上,在用户态调用Linux命令会很方面,所以...