Skip to Main Content
It looks like you're using Internet Explorer 11 or older. This website works best with modern browsers such as the latest versions of Chrome, Firefox, Safari, and Edge. If you continue with this browser, you may see unexpected results.
New York Tech Returns: What to know about using NYIT Libraries for Summer 2022. View the latest information

Linux & Unix: Command Line

Learn about Linux and Unix type operating systems.

Introducing the Command line

The command line interface is an integral part of using linux and unix systems.  Many pieces of software are available only in command line or provide additional functionality.  The command line interface also provides the ability to script actions and pipe or connect commands together.

Featured Resource

http://explainshell.com/

Enter in shell commands with arguments to see a detailed explanation.  The explainshell.com site provides a great way to learn and test commands.

Command Line Basics

Most commands have the following format:
command -options arguments

Navigate Directories:

ls
      List all files in current directory

pwd
      Prints full path of current directory to the terminal

cd /path/to/file
      Change directory to path specified as argument


Working with Files:

cp file_copy_from file_copy_to
      copy files and directories
mv file_from file_to
      move or rename files and directories
rm filename
      remove files and directories
mkdir new_directory_name
​      create directories

Online Learning

© 2022 New York Institute of Technology