What Are Some Basic Linux Commands?


Quick Answer

Some basic Linux commands include: “Is,” “cp,” “mv,” “cd,” “chmod,” “rm,” “mkdir,” “pwd,” “logout” and “shutdown.” Almost all of these commands require additional parameters in order to execute.

Continue Reading
Related Videos

Full Answer

Linux is a computer operating system that was released in 1991 by Linus Torvalds. It was assembled under the model of free and open-source software development and distribution. Typically, the default user interface for computers is a graphical user interface and the command-line interface, which is the text-based user interface that uses text for both input and output. Linux has a few basic commands that are used to execute basic tasks.

“Is” produces a short listing of the files in the current working directory, while “Is –al” produces a detailed list. “Cp” instructs the computer to copy files; additional parameters indicate the destination directory, for example, “cp boy girl” copies boy to girl. “Mv” is used with additional parameters to move files and then deletes the original source file, for example, “cp boy girl” copies boy to girl, then deletes boy. “Cd” instructs the computer to change directory; if used alone, it redirects to the user’s home directory, otherwise, “cd” followed by the name of a directory redirects to the specified directory. “Chmod” is used to change file access permissions; additional parameters specify access restrictions. “Rm” is used with additional parameters to remove the specified files from the system.

“Mkdir” creates a new directory, while “rmdir” deletes a specified directory, provided it is already empty. “Pwd” instructs the computer to show the name or full path of the current working directory. “Logout” logs the current user off the system, while “shutdown” shuts the system down.

Learn more about Software

Related Questions