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.

Linux Formatting commands

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:

Formatting commands in linux

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:

Linux Formatting commands combine

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: Packet Tracer – Configuring Secure Passwords and SSH Packet Tracer Multiuser – Implement Services – Client Side


Hamza Arif
Follow us

Hamza Arif

Hey, i hamza arif student of telecommunication from BZU, i am good in Networking, Telecommunication and Web Development working on different projects and try my best to teach them to all of you.
Hamza Arif
Follow us

Latest posts by Hamza Arif (see all)

2 thoughts to “Linux Formatting commands

Leave a comment

Your email address will not be published. Required fields are marked *