Network Kings, India’s Leading IT Career Training Academy
Linux is one of the most reliable Unix-like computer Operating System (OS) under the model of free and an open-source software development and distribution. It is an editable Operating System. Introduced in the early 1990s, Linux manages and upkeeps everything from hardware like monitor, keyboard, other peripherals etc. to software applications as well.
You can either delete a single file permanently or you can delete one or multiple files simultaneously. The two commands are:
This command is one of the most widely used command to delete single or multiple files simultaneously.
For example,
$ rm {file name}
This command is used to permanently delete a file in Linux.
For example,
$ unlink {file name}
There are two ways to rename a file in Linux:
We will learn to rename a file using two commands:
You require the knowledge of Bash Scripting to use this command. It is written as follows, for example:
$ mv file1.txt file2.txt
It is used to rename multiple files and it requires basic knowledge of regular expressions. This command renames files according to the specific perlexpr regular expression. For example,
rename [OPTIONS] perlexpr files
The three commands used to remove a directory in Linux are:
This command is used to delete empty directories. The syntax used is:
$ rmdir dir1
This command is used to delete both empty and non-empty directories.
This command allows you to search for directories on the basis of a given expression and then perform the action accordingly.
To look up for a file in Linux, all you need to do is enter the find command to search up a file through its name or its extension. For example,
find. -name thisfile.txt
find . -type f -empty
Kali Linux is a free and the most popular Operating System (OS) with over 600 tools that are used for penetration testing and security analytics. It is mostly used by Cyber Security Experts.
The steps to install Kali Linux are given as follows:
Shell reads your command in the Linux. It provides you with an interface to the Unix system and executes programs called commands. Technically, Shell is the Linux command line interpreter. The Borne Again Shell is the most commonly used shell used in Linux. For example,
the logout command logs out of the Linux terminal.
The who command gives you access to the list of users that are logged in to your Linux operating system at a given time. It also gives the following information:
The OS version of Linux and the OS name can be found out by following the procedure given below:
A zip file could easily be unzipped using the GUI. Let’s learn how to extract a zip file using Ubuntu/ Debian:
1. Open the Files app and locate the directory where the zip file is present.
2. Go to the file which you want to unzip.
3. Right-click on the file and a drop-down menu will appear.
4. Click on the ‘Extract Here’ to unzip the file into the currently working directory.
5. Click on the ‘Extract To’ to unzip the file into some other directory.
The cp command is used to copy files and directories on a Linux and Unix System. The general syntax used is:
cp [OPTIONS] SOURCE . . . DESTINATION
If you want to join Linux certification training online? Join our free demo live video