It will cover basic to advanced examples where we can use multiple options with the du tool to get the required output. Example 1:- Basic command Let’s say you want to find the disk usage overview of the /home/putty directory tree and all include the sub-directories, then input the ...
FROM:http://www.tecmint.com/15-basic-ls-command-examples-in-linux/ lscommand is one of the most frequently used command in Linux. I believelscommand is the first command you may use when you get into the command prompt of Linux Box. We uselscommand daily basis and frequently even though...
In below example, it will display contains oftestandtest1file in terminal. # cat test test1Hello everybody Hi world, 3. Create a File with Cat Command We will create a file calledtest2file with below command. # cat >test2 Awaits input from user, type desired text and pressCTRL+D(hold ...
This command displays the current status of interfaces. If you only want to view the link state information of interfaces or know whether a particular interface is up, you can use this command. Besides the IP configuration, this command provides the same information that the"ip addr show"comman...
In this tutorial, we’ll explore common options of thelscommand. We’ll delve into basic examples and more advanced example utilization that streamlines file management tasks. 2. CommonlsCommand Options The basic syntax of thelscommand is fairly straightforward: ...
Basic linux command 1. useradd 解释:添加新用户,在/etc/password文件中添加一行记录。参数:-g 用于添加账户时指定该账户的私有组,如果不指定-g参数,useradd命令会自动创建与该用户同名的组名作为该账户的私有组-G 用于添加附属组-D 用于显示或设置useradd命令所使用的默认值...
Basic chkconfig Command Examples in Linux This is our ongoing Linux command series where we are going to review how we can usechkconfigcommand efficiently with it’s available parameters. TheChkconfigcommand tool allows to configure services start and stop automatically in the/etc/rd.d/init.d...
2. Basic Usage mv uses the following command syntax: mv [options] source destination Let’s go over the arguments shown above: [options] –represent optional flags used to modify the behavior of the mv command source –represents the file or directory we want to move, which we can specify...
1. What is the primary purpose of the echo command in Linux? The echo command is used to display text on the terminal. 2. How can I display a message with line breaks using echo? Use the -e option with escape characters, such as \n for a newline. For example: echo -e "Line 1...
1. What is the basic syntax of the mkdir command? The basic syntax for mkdir is: mkdir [options] directory_name(s). It creates one or more directories with the specified name(s). 2. How can I create a single directory using mkdir?