Hello, i am hamza arif from telecomacadmey. In this lecture we will concern with Linux formatting commands, in last lecture we discuss about What is Linux server application? Types of services, in this will cover formatting commands.
Many commands can be used by themselves with no further input. Some commands require additional input to run properly. This additional input comes in two forms: options and arguments.
The typical format for a command is as follows:
Command [options] [arguments]
Options are mostly used to modify the core behavior of a command, while arguments are used to provide additional information. Each option and argument is normally separated by a space, although options can often be combined together. As we know Linux is case sensitive so that’s why Commands, option, Arguments, variable and filenames must be entered exactly as shown.
Formatting commands in linux
The ls command will list the files and directories contained in your current working directory, it provide useful examples.
As you can it show the list of the localhost which contain bin, dev, home, lib and etc.
The command ls /etc/dpkg will list the contents of the /etc/dpkg directory instead of the current directory:
with the ls/etc/dpkg command you can see, that it shows the list of /etc/dpkg.
you can list the contents of multiple directories at once by typing the ls /etc/dpkg /etc/group command:
In this you can see we can use ls command with two directories for checking their lists, here we open the list of /etc/dpkg and /etc/group you can see there is no file in /etc/group and in /etc/dpkg their is dpkg.cfg, dpkg.cfg.d, origins as well.
For more clarification you can watch this video hope you will understand the formatting commands in Linux.
you may also like:
Latest posts by Hamza Arif (see all)
- What is RDP (Remote Desktop Protocol) & How RDP works - July 20, 2018
- Understanding SNMP & Install and configure SNMP - July 18, 2018
- Ping, Tracert, PathPing – Troubleshoot Network - July 17, 2018