top of page

What is Linux Commands ? List of commands

  • Mahesh Bhat
  • Jun 22, 2017
  • 2 min read

A command is an instruction given to our computer by us to do whatever we want. In Mac OS, and Linux it is called terminal, whereas, in windows it is called command prompt. Commands are always case sensitive.

There are two types of shell commands:

  • Built-in shell commands: They are part of a shell. Each shell has some built in commands.

  • External/Linux commands: Each external command is a separate executable program written in C or other programming languages.

Linux Directory Commands

1) pwd :- The pwd command stands for (print working directory). It displays the current working location or directory of the user. It displays the whole working path starting with /. It is a built-in command.

2) ls -The ls command is used to show the list of a folder. It will list out all the files in the directed folder.

3) cd -The cd command stands for (change directory). It is used to change to the directory you want to work from the present directory.

4) mkdir - With mkdir command you can create your own directory.

5) rmdir - The rmdir command is used to remove a directory from your system.

Linux Files :-

In Linux system, everything is a file and if it is not a file, it is a process. A file doesn't include only text files, images and compiled programs but also include partitions, hardware device drivers and directories. Linux consider everything as as file.

Types of Files:

  1. Regular files (-): It contain programs, executable files and text files.

  2. Directory files (d): It is shown in blue color. It contain list of files.

  3. Special files

  • Block file (b)

  • Character device file (c)

  • Named pipe file (p)

  • Symbolic link file (l)

  • Socket file (s)

Linux File Commands

1) file - Determines file type.

2) touch - Used to create a file.

3) rm - To remove a file.

4) cp - To copy a file.

5) mv - To rename or to move a file.

6) rename - To rename file.

Comments


Recent Posts

© 2023 by Kathy Schulders. Proudly created with Wix.com 

  • Grey Twitter Icon
bottom of page