Basic Unix Commands

1) login to the unix/solaris server

 username: aaa passwd : *******
Check default home_directory.
it shows the present working directory
previous directory
create new directory
shows last 10 lines of file
creates link of file1 to file2
acrawley.html:  <>
admin:          aaaa
afiedt.buf:     <>
autosys_env_IBKNYR1:   <>
clears the screen

2) pwd

3)ls -l 
shows  listing of the files in present directory

4) cd ..

5)mkdir <directory>

6) mkdir -p /home/a/b/c
will create all the non-existing directories 

7)vi <xxxx>
opens file for reading or editing

8)cat <XXX>
display contents of file

9)more <file_XXX>
displays page by page data

10) tail <xxxx>

11) touch <file_name>
creates dummy file

12)ln file1 file2

13) file <file_name>
shows what type of file it is like
$ file *

14) cd /home/<directory_name>
To /home/<directory_name> directory likewise you can give and directory

15)clear
clears All the data 

Comments

  1. Thank you So much Laxmi, All your blogs are simply awesome, very discriptive and informative all at one place :)

    ReplyDelete

Post a Comment

Popular posts from this blog

Interview question for File and FTP Adapter

What is boot.properties file and how to create

SSL Exceptions in Admin Server and Node Manager.