Jai’s Weblog – Tech, Security & Fun…

Tech, Security & Fun…

  • Jaibeer Malik

    Jaibeer Malik
  • View Jaibeer Malik's profile on LinkedIn
  • Subscribe

  • Feedburner

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 29 other followers

  • Archives

  • Categories

  • Stats

    • 379,210
  • Live Traffic

Commonly used unix commands

Posted by Jai on June 8, 2008

Unix Why?

There are only two kind of people who understand 0 1 and who don’t understand.

Navigating The File System:

pwd: Checking your Current Directory
cd: Changing Directory
mkdir: Making Directories
rmdir: Removing Directories
ls: Listing Files

General-Purpose Utilities:

banner: Display a Blown-up Message
cal: The Calendar
date: Display the System Date
who: Login Details
tty: Knowing Your Terminal
man <command>: Displays help on <command>
apropos <keyword>: locates commands by keyword lookup
whatis <command>: Brief command description

Handling Files:

cat: Displaying and Creating Files
cp: Copying a File
rm: Deleting Files
mv: Renaming Files
more: Paging Output
lp: Printing a File
file: Know the file types
wc: Line and Word and character counting
split: Splitting a File into Multiple Files
cmp: Comparing two files

File Attributes:

ls –l: listing File Attributes
ls –d: Listing Directory Attributes
stat: Display File Permissions
chmod: Changing File Permissions
chown: Changing Ownership
chgrp: Changing Group
chsh: Changing Shell
ln: Links
umask: Define Defaults File Permissions for a User

The Environment:

env: Displays Environment Properties
.profile: The Script Executed During Login Time
PWD: Know your Current Directory
HISTSIZE: Define History Size
LOGNAME:
Login Name
SHELL: Your Default Shell
HOME: Define Home Directory
PATH: Declare Path
MAIL: Declare Mail Directory Path
alias: Define short-hand names for commands

The Process:

ps: Process Status
<command> &:
To run a process in Background
bg: To run a process in Background
fg: To run a process in Foreground
kill: Premature Termination of a Process
nice: job execution with low Priority
at and batch: Execute Later
cron: Running jobs Periodically

Communication And Electronic Mail:

write: Two-way Communication
mesg: Your Willingness to Talk
talk: Splits the screen into two windows for chatting
mail: The mailer
news: To read news messages
elm: A screen-oriented mail handler
pine: Another mail program
finger: Details of Users

Networking:

telnet: Remote Login
ftp: File Transfer (protocol)
rlogin: Remote Login Without Password
rcp: Remote File Copying

System Administration:

useradd: Adding Users
/etc/passwd: User Information
/etc/shadow: Encrypted Passwords
userdel: Removing Users
fsck: File System Checking
df: Checking disk size
du: Checking file size
groupadd: Adding Group
groupdel: Deleting Group
groupmod: Modifying Group

One Response to “Commonly used unix commands”

  1. Roger Rayle said

    I think the opening quote as you have it lost some of its impact from the way I remember it: “There are only 10 kinds of people in the world … those who understand binary and those who don’t.”

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

 
%d bloggers like this: