CLI

The Command Line Interface (CLI) is the fundamental method of interacting with Linux/Unix/OS X systems. When Linux and Unix were first developed, the CLI was the only way of communicating with the system.

Today, with the many Graphical User Interfaces ( GUIs) available, fewer users are now being exposed to what can be done from the command line. In particular, users of OS X systems are commonly ignorant of what can be done through their terminal.

The intent of this page and the posts that it references are to introduce the new Linux user and the OS X user to what can be done through the CLI.

What are CLI Commands

Commands that are entered at the command line are simply programs that have been developed over the years and are now part of the Unix/Linux/OS X distribution that you are using. There are hundreds of commands, some you will use often, others you may never use.

Common Commands

 

Command OS X Linux Description
apropos * * search command descriptions for keyword
bzip2 * * file compression/decompression with the Burrows-Wheeler block sorting text compression algorithm and Huffman coding
cat * * concatenate and print file
chsh * * change user shell
chgrp * * change group ownership
cd * * change directory
history * * display the commands entered at the command line
ln * * make link
look * * List all lines of sorted text file that begin with specified word
ls * * list directory contents
man * * format and display the on-line manual pages
netstat * * print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships
pwd * * print working directory
rsync * * file synchronization
sed * * stream editor
sudo * * execute a command as another user
top * * watch process related details such as CPU and memory usage
zcat * * View compressed file
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Observations on SciFi, Books, Space Exploration, Robotics, and Productivity

%d bloggers like this: