Basic Commands to Learn Unix Linux via Terminal


Basic Commands Learn Unix Linux via Terminal - Ane in this article will help friends who want to just learn the basic commands of unix or linux, this will be difficult when new friends migrate from windows operating system that uses Graphic User Interface (GUI) to Terminal (Text-Based) view, it will definitely feel difficult.

By running time friends by themselves will feel comfortable, as long as every day nyempetin to practice using unix / linux commands in the terminal, friends do not have to worry about memorizing all the commands in the terminal just memorize the important ones, in addition to unix / linux has provided documentation of the commands of each tool installed in the system simply typing the command man nama_tool in the terminal.

But friends no longer need to worry because unix / linux there is a version of Graphic User Interface (GUI) or in the form of visual images, in unix / linux there is a so-called distro as a differentiator in terms of appearance and has its own advantages and disadvantages, but still the core of the operating system can use unix or linux.


Advantages of Learning Unix and Linux

  • Many people are looking for those who can, because not too many people can use it.
  • Can create its own operating system, because the source of the code is open (Open Source) for who wants to create, according to needs.
  • You can experiment with this operating system.
  • The average Operating System is widely used for server computers, whose function is to provide services to users such as websites, video streaming, music, online data storage, online radio, etc.
  • The operating system is completely free, and can be commercialized.
  • The app is free.
For the commands run on the shell, where this shell is the intermediary with the core operating system (kernel) that the user enters in the terminal, provided that the application is installed on the operating system.

Types of Shell

  • Bourne Shell (sh)
  • Korn Shell (ksh)
  • Bourne Again shell (bash)
  • C Sheel (csh)
  • Z Shell (zsh)


Terminal Introduction

This is an example of a look or creature of the terminal, whose black color can only be used with the command typing on the keyboard, to bring up the terminal that is in the GUI distro, just press the keyboard combination ctrl + alt + t, or can open the main menu and look for the one named terminal.

For the truly text-based there is only one main view and the user is logged in to log in to the operating system.



Description in the terminal

nama_user@hostname:~$ or $

This is the user name that friends use when logging in, the terminal will read automatically the user used to login, this is including ordinary users who are symbolized by the $ symbol on the back, this user does not have full access rights to the operating system.


root@hostname:~# or #

This type of user type is root, where this user has full access rights to the main operating system, this is usually used for the installation of applications using terminals and for the configuration of settings from an application.


View the contents of a folder

List Directory Contents (ls)
ls
Display the contents of a folder



ls –l
Displays the contents of a list-shaped folder



ls –a
Displaying the contents of a folder and the hidden one will be displayed, the characteristics of the file or folder that is hidden there is a dot in front of its name.



ls –la
Displaying the contents of a listed and hidden folder will be displayed



Cleaning the terminal screen

Clear the terminal screen (clear)
Clear
before



after



Displays the position of the directory we are in on the work page

Print Working Directory (pwd)
Pwd

 



Go to another directory

Change Directory (cd)
cd ~
Go to the user's main directory



Cd
example goes to the usr directory → home → ga 



 Cd..
Go up one directory 



Cd.. /..
Up 2 directories



cd -
Go back to the last directory located



Create a new folder

Make Directories (mkdir)
mkdir
Create a new folder with an exercise name



mkdir dir1 dir2 dir3
Create more than one directory folder with exercise name1 exercise2 exercise3



mkdir "Directory Name"
create one folder with a separate name exercise 1



mkdir - p dir/dir2/dir3
Create a folder that has an exercise1/exercise2/exercise3



Copy (cp)

cp file1 file2
Copy file1 to file2



cp file1 folder_lokasi_copy
Copy file1 to folder



cp –R folder folder_lokasi_paste
Copy the ANGGA folder containing the files, and then copy it to the backup folder



Move files, folders, and rename

mv filename ne_ filename
Rename a file 12345qwertyuiop to file1



mv folder_location file_name
Move file1 to folderangga



mv name_folder location_folder
Move folders containing files with folder names to backups



Delete files and folders

Remove Files and Directories (rm)
rm nama_file
Delete a file1



Delete an empty folder only


Remove Empty Directories (rmdir)
rmdir folder_name
Delete a folderangga



Command to view documentation/manual, a command

 Manual (man)
man app_name
Check the documentation of the rmdir command



Sign out of the terminal or login user

exit
When executing this command automatically the terminal in the GUI will exit, if the main terminal of the user logged in in the system will exit.


Basic Command to Learn Unix Linux via Terminal, which must be mastered by friends because it will often be used when opening terminals such as installing applications, file configurations, etc.

LihatTutupKomentar