Professional Documents
Culture Documents
Basic Linux Command Line Tutorial To Start Developing in Ubuntu Linux
Basic Linux Command Line Tutorial To Start Developing in Ubuntu Linux
To make Medium work, we log user data. By using Medium, you agree to our Privacy Policy, including
cookie policy.
This article is meant to give you a basic idea about Linux command line codes . By
reading this you will learn how to navigate through Linux directories , create a
directory or file as well as some common methodologies used in Linux .Because I use
Windows I am going to show you the Linux commands by opening “Ubuntu on
Windows”.
clear
Directory navigation
See the location of the pointer :
pwd
https://medium.com/@zibon/basic-linux-command-lines-to-get-started-developing-in-ubuntu-linux-b54def1c2190 1/9
6/7/2020 Basic Linux command line tutorial to start developing in Ubuntu Linux
To make Medium work, we log user data. By using Medium, you agree to our Privacy Policy, including
cookie policy.
ls
Move up:
cd ..
cd folderName
navigating
In the above scenario I used pwd,ls and cd to illustrate how we can move from from
one folder to another.
Move to root:
cd /
https://medium.com/@zibon/basic-linux-command-lines-to-get-started-developing-in-ubuntu-linux-b54def1c2190 2/9
6/7/2020 Basic Linux command line tutorial to start developing in Ubuntu Linux
Seeing
To the contents
make Medium of adata.
work, we log user folder : Medium, you agree to our Privacy Policy, including
By using
cookie policy.
Show all files (hidden also):
ls -a
ls -l
In the privilege section of the owner section we can see that drwxr is written it means :
r — read
x — execute
Changing permissions of a file or folder is a different topic altogether .We will skip that
in this article.
https://medium.com/@zibon/basic-linux-command-lines-to-get-started-developing-in-ubuntu-linux-b54def1c2190 3/9
6/7/2020 Basic Linux command line tutorial to start developing in Ubuntu Linux
make
To a newwork,
make Medium directory
we log user data. By using Medium, you agree to our Privacy Policy, including
cookie policy.
mkdir directoryName
delete
rm -r directoryName
rm nameOfFile
rmdir directoryName
make a file
touch f.txt
https://medium.com/@zibon/basic-linux-command-lines-to-get-started-developing-in-ubuntu-linux-b54def1c2190 4/9
6/7/2020 Basic Linux command line tutorial to start developing in Ubuntu Linux
To make Medium work, we log user data. By using Medium, you agree to our Privacy Policy, including
code f.txt
cookie policy.
another important thing you want is the use of tab button. when writing long
filenames press tab and it will suggest names that exist in the directory.
cat f.txt
this helps when you need to look inside a small file.to see larger files use :
less f.txt
Renaming a file :
mv f.txt newName
rename
copy a file :
cp newName.txt copied.txt
https://medium.com/@zibon/basic-linux-command-lines-to-get-started-developing-in-ubuntu-linux-b54def1c2190 5/9
6/7/2020 Basic Linux command line tutorial to start developing in Ubuntu Linux
To make Medium work, we log user data. By using Medium, you agree to our Privacy Policy, including
cookie policy.
locating a file/folder:
which fileName/foldername
history
update Ubuntu :
https://medium.com/@zibon/basic-linux-command-lines-to-get-started-developing-in-ubuntu-linux-b54def1c2190 6/9
6/7/2020 Basic Linux command line tutorial to start developing in Ubuntu Linux
ifconfig
ping a website :
ping google.com
uname -a
top
https://medium.com/@zibon/basic-linux-command-lines-to-get-started-developing-in-ubuntu-linux-b54def1c2190 7/9
6/7/2020 Basic Linux command line tutorial to start developing in Ubuntu Linux
df Medium work, we log user data. By using Medium, you agree to our Privacy Policy, including
To make
cookie policy.
Install software :
Remove/uninsall :
Restart computer :
sudo reboot
. . .
https://medium.com/@zibon/basic-linux-command-lines-to-get-started-developing-in-ubuntu-linux-b54def1c2190 8/9
6/7/2020 Basic Linux command line tutorial to start developing in Ubuntu Linux
Share
To make your
Medium opinions
work, we. log
:) and
user please
data. By leave a clap or
using Medium, you50 :P :)
agree to our Privacy Policy, including
cookie policy.
BYE!! .
https://medium.com/@zibon/basic-linux-command-lines-to-get-started-developing-in-ubuntu-linux-b54def1c2190 9/9