9th Jul, 2007

Basic Unix commands

passwd - To change your
password

exit - exits the Unix session. You can also use
logout.

ls - To list files in a directory.

cd - To navigate the file tree, or to change your
directory. Type cd home to go to the directory home.

cp - To copy files. Type cp [filename] [path] , for
example, cp file.txt /home/file2.txt would copy file.txt to the location
/home as file2.txt.

rm - To remove files. Type rm [filename] to delete
them.

mv - To rename files. Type mv [oldname] [newname] ,
for example, mv file.txt file2.txt would rename to file2.txt.

mkdir - To make a new directory, used mkdir
[directoryname]

rmdir - To remove a directory, used rmdir
[directoryname]

who - Will display who is logged in right now.

w - Displays what each user is doing right now.

man - Will display the basic manual for a command or
program, i.e. man ls will display information on ls.

df - Displays how much free space is left on the disk.

chmod - Change permissions (see Web Page Faq’s for
permissions)

chgrp - Change group ownership of file or directory

chown - Change owner of file or directory

clear - clears the screen

grep - Searches inside files.

locate - search for files.

pwd - current working directory

ps - list of processes

kill - kill process

Basic programs available:

ftp - connects to an ftp server, allowing easy file
transfer.

telnet - telnet to a server, connecting you to their
Unix system.

mail - basic email program.

vi - basic and popular vi editor.

To know about the command details and syntax , type ‘man
[command name]‘
in the console.

Leave a response

Your response:

Categories and Tags

Advertising