Basic Unix Commands | Frequently Used Unix Commands | Unix Commands with Examples | Useful Unix Commands


Basic Unix Commands with Examples:


Unix operating system is one of the most used and secure operating system which is using in development and deployment of lot of applications.Because of the Security of the unix operating system thiBasic Unix Commandss is used in 90 percent of applications as a server operating system.Unix is Multiuser and Multitasking operating system which is used mainly as server in most of the applications.In this article i will give you the brief description of common unix commands which will useful to begin study of the unix.These Basic Unix Commands are most commonly used commands which are  related to date ,time ,username of logged in users,how to display caledar,hostname.


“Unix is simple,stable,multiuser,multitasking operating system which is used for Servers,Desktops and laptops..”


List of Basic Unix Commands with Examples:

1.Logname :

Logname command is used to display the login name of the user.




2.PWD :

PWD is most commonly used command which is used to show the present working directory of the user.




3.Date :

Date command used to display the current date and time of the system.



Output:Wed APR 12 22:55:55 IST 2017

4.Clear :

Clear Command clears the screen.

5.Cal :

Cal command displays the current month calendar.

6.Cal 2000 :

Displays year 2000 calendar.

7.Cal 01 2000:

Displays the 2000 year calendar for month of January.

8.Uname :

The Uname command displays Operating system name.Like Red-Hat,Fedora e.t.c.



RHEL 7.3

9.Uname -r :

The Uname with -r is used to display the kernel version of operating system.


$Uname -r


10.hostname :

The hostname is used to display the host name or server name.




11.hostname -i:

This command is used to show the host ip address.


$Hostname -i

12.Who :

This command gives the list of user connected to server.



Output :Amit


13.Finger usename :

It displays given user information.

14.Whoami :

This command displays current user information.



Output : Amit

15.tty :

This displays current ternimal name.



Output: /dev/console

16.uptime :

it displays how long server is up & running, no of users connected, average load on the server.

17.SU :

it is used to switch from one user account to another user account.

Example :

$SU Rohit

the  above command switches account named “Amit” to account named “Rohit”.

18.Exit :

It is used to logout the current user account.

19.Man :

displays the Manual pages or help for given command.

Example: Man ls

The above command will show the manual pages of the command named ls.

Click on Topic You want to learn:

  1. History of SQL
  2. SQL Create Table(DDL in SQL)
  4. SQL Select Statement Execution
  5. Operators in SQL
  6. Views in SQL
  7. Materialized View in SQL
  8. Joins in SQL
  9. Inner Join / Outer Join
  10. Full Outer Join / Cartesian Join
  11. Union and Union ALL
  12. Intersect and Minus
  13. Indexing in SQL
  14. Rank and Dense Rank
  15. SubQueries and Correlated Subqueries
  16. Parser and Optimizer
  17. Oracle 11 G new Features
  18. SQL Functions List
  19. Constraints in SQL
  20. Database Normalization
  21. Table Partitioning
  22. Pivot in SQL
  23. Difference Between Truncate,Delete and drop
  24. Oracle System Tables

Unix Tutorials :

1.What is unix?

2.Basic unix commands

3.File Commands in unix

4.Create File in Unix using multiple ways

5.Cat Command

6.Touch Command

7.Mkdir command

8.rmdir Command

9.pwd command

10.Cd Command

11.cut Command

12.paste Command Command

14.Cp Command

15.wc command

16.cmp command

17.Rm Command

18.Grep Command

19.Egrep Command

20.FGrep Command

Hope you like this article on simple commands of unix.In next articles i will give the brief information about the other commands.




About admin 136 Articles
Oracle Consultant with Vast Experience in Oracle BI and SQL PLSQL Development

7 Trackbacks / Pingbacks

  1. Create file in unix using multiple ways | Cat Command with examples | Touch command with examples | Difference between Cat and Touch | Unix Commands to create file | Create file using Vi editor
  2. Working with Unix Directory | Create Directory in Unix | Mkdir Command with Example | PWD command with example | Rmdir command to remove directory | Cd command to change directory
  3. SQL Constraints | Constraints in SQL | Primary Key in SQL | Foreign Key in SQL | Check Constraints in SQL | Null Value
  4. Oracle System tables | Find Table | Find Constraint | Find User | Find Index | Oracle system tables list | Important Oracle System Tables | Useful Oracle System tables
  5. Difference between Truncate and Delete, Drop in SQL | Truncate Delete and Drop Commands in SQL | SQL Difference between Truncate,Delete and Drop Commands | Real Life Examples of Truncate Delete and Drop Command
  6. SQL Functions List,Functions in SQL,SQL Functions example,Aggregate functions,scalar functions,Aggregate functions in sql,scalar functions in sql,functions
  7. Database Normalization Examples | Normalization in Database with Examples | Database Normalization with Real Life Examples | Designing Normalized Database

Leave a Reply

Your email address will not be published.