Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

LINUX COMMANDS PART- 1

The Command to check the current Directory

pwd

NOW, WE WILL LEARN TO CHANGE THE DIRECTORY OR FOLDER 

1) If you want change your directory  

Command:

cd Desktop

NOTE: Linux is case sensitive so careful with the letters  

 

If your by mistakenly type Desktop instead of Desktop you will get error as shown below: 

Command:

cd desktop



bash: cd: desktop: No such file or directory 

2) Again if you check the path 

Command: 

pwd

Output:  

/home/user/Desktop 

 

if you want to come back from Desktop 

Command: 

cd  ..


Before:  

home/user/Desktop 

Output:  

/home/user  

3)  If you want to toggle between the directory  

Command:

cd ~

HERE ARE THE SOME INITIAL COMMANDS: 

command  Result 
clear  If you want clear the terminal 
Logname  for display the current user 
tty  for the current terminal 
pwd  To check the path 
uptime  Time of OS 
uname  Name of the OS 
uname   -p  Processer of OS 
uname  -r  Version of OS 
uname  -v  Release date of OS 
uname   -n  Host name of OS 
uname  -a  Info of OS 
uname  -m  Hardware name 
 
hostname  Ubuntu 
hostname  -a  Alies name of Hostname 
hostname  -f  Fully hostname 
hostname  -i  IP address of the hostname 
hostname  -s  Display the short name 

 

who  Who connected to the server 
who am i  User 
who  -b  System boot time 
who  -d  Dead  process 
who  -h  Display heading 
who  -l  Ideal  time 
who  -u  list of user login 
w  -V  Display version 
w  Logged in avg load 
cal  calendar 
exit  To exit from the terminal 
id –u  To check the user id 
id  -g  To check the group id 

 

 

 

Here are some commands which are very much useful command in Linux 

  1. To check the current directories
ls  

a.txt  corona.txt  dumy  guru  lin  poi  rajkumar  hadoop.2.7.3.tar.gz w.txt 

a.txt  the one with the white color is text file 

dumy the one with blue color is directory 

hadoop.2.7.3.tar.gz the one with red color is zip file 

 

Suppose if you want one – by – one then,

 

ls -1 


a.txt 

corona.txt 

dumy 

lin 

megha.txt 

poi 

rajkumar 

w.txt 

 

 

 

The post LINUX COMMANDS PART- 1 appeared first on Prwatech.



This post first appeared on Learn Big Data Hadoop In Bangalore, please read the originial post: here

Share the post

LINUX COMMANDS PART- 1

×

Subscribe to Learn Big Data Hadoop In Bangalore

Get updates delivered right to your inbox!

Thank you for your subscription

×