Linux commands that you should know about- Part 2

1. apt-get

What is apt-get?

The apt-get utility is a powerful and free package management linux command line program, that is used to work with APT (Advanced Packaging Tool) library to perform installation of new software packages, removing existing software packages, upgrading of existing software packages and even used to upgrading the entire operating system.

Updating the package database requires super user privileges so you’ll need to use sudo.

sudo apt-get update

When you run apt-get command, you’ll see the information being retrieved from various servers.

Simple Commands in Linux

2. ping

PING (Packet INternet Groper) linux command is the best way to test connectivity between two nodes. Whether it is Local Area Network (LAN) or Wide Area Network (WAN). Ping use ICMP (Internet Control Message Protocol) to communicate to other devices.

3. RPM

rpm is a powerful Package Manager, which can be used to build, install, query, verify, update, and erase individual software packages. A package consists of an archive of files and meta-data used to install and erase the archive files. The meta-data includes helper scripts, file attributes, and descriptive information about the package. Packages come in two varieties: binary packages, used to encapsulate software to be installed, and source packages, containing the source code and recipe necessary to produce binary packages. RPM was intended primarily for Linux distributions; the file format is the baseline package format of the Linux Standard Base.
rpm -i [Options]
rpm –install [Options]

4. ls

It may help to use the ls linux command to list what files and directories exist in the directory you are in. It’s vital to know the difference between ls & pwd. pwd tells you where are, ls tells you what you have to work with.
ls /applications

…will show the user all of the folders stored in the overall applications folder.
The ls command is used for viewing files, folders and directories in a Linux environment.

5. scp

scp stands for secure cp (copy), which means you can copy files across ssh connection. That connection will be securely encrypted, scp is a very secure way to copy files between computers.
The basic syntax of scp is very simple to memorize. It looks like this

$ scp source_file_path destination_file_path

6. mkdir

The mkdir – make directory – command allows the user to make a new directory. Just like making a new directory within a PC or Mac desktop environment, the mkdir command makes new directories in a Linux environment.
mkdir [option] directory_name(s)
mkdir myfiles

7. vi

The UNIX vi commands listed on this page which handles searching, editing, navigation, cursor movement, inserting text, cut, copy, paste and using auto-complete operations etc in vi are useful for taking advantage of the UNIX vi editor. In UNIX operating system vi (Visual Editor) is the default editor.

The UNIX vi editor has two modes of operation:
1. Insert mode (entered text is inserted into the file – Press the <Esc> (Escape) key to go to the command mode).
2. Command mode (commands which cause action to be taken on the file – Press the ‘i’ character to change to Insert mode).

8. man

The man command – the manual command – is used to show the manual of the inputted command. Just like a film on the nature of film, the man command is the meta command of the Linux CLI. Inputting the man command will show you all information about the command you are using. An example:
man cd

9. export

export- command is one of the bash shell BUILTINS commands in Linux, which means it is part of your shell. The export command is fairly simple to use as it has straightforward syntax with only three available command options. In general, the export command marks an environment variable to be exported with any newly forked child processes and thus it allows a child process to inherit all marked variables.
$ export -n EDITOR

10. rmdir

The rmdir command is used to remove empty directories in Linux. That is, each directory removed must contain no files or directories, or it cannot be removed by rmdir.If any specified directory is not empty, rmdir will not remove it, and will proceed to try and remove any other directories you specified.
rmdir [options] directories
rmdir mydir

Also you can see more commands at out blog- Linux commands that you should know about-Part 1.

Do you need to develop a web solution for your business on open source platform? Then you might need some help. Solace team is expert in Linux and is there to help you for development in linux. Contact us for any web development solution which lifts your business to the success it deserves.

Related Post