Simak Beberapa Perintah Dasar Linux yang Wajib Anda Pahami

Linux merupakan salah satu sistem operasi komputer, untuk dapat menjalankan suatu perintah dalam Linux Anda harus menguasai beberpa perintah dasar linux

Pengertian Linux

Linux adalah salah satu sistem operasi computer yang popular saat ini. Linux berbentuk perangkat lunak yang memungkinkan suatu aplikasi dapat berjalan pada suatu sistem operasi computer tersebut. Sistem operasi computer adalah perangkat lunak yang mengelola perangkat keras serta sumber daya aplikasi computer. Beberapa contoh dari system operasi computer selain linux yang banyak kita jumpai yaitu Microsoft windows. Linux sendiri bersifat gratis atau open source. Keuntungan Linux adalah anda dapat dengan bebas melakukan pengembangan serta modifikasi didalamnya. Sistem yang ada di Linux tentu berbeda dibandingkan sistem operasi lain seperti windows, Perbedaan Linux dan Windows di bedakan dari segi modifikasi sistem didalamnya.

Cara Kerja Linux

Dalam mengoperasikan Linux, tentu kita harus memahami bagaimana cara kerja nya. Cara Kerja Linux yaitu kita harus menggunakan suatu interface Bernama shell untuk dapat mengakses layanan system operasi. Linux sendiri juga menggunakan system GUI (Graphic User Interface) sebagai shell-nya, hal ini bertujuan karena GUI sendiri bersifat user friendly.

Sejarah Kemunculan Linux

Sejarah Linux diawali oleh seseorang Bernama Linus Torvalds pada tahun 1991. Awalnya linux mulai dikembangkan sebagai system operasi computer yang gratis untuk komputasi pribadi. Linux selanjutnya terus mengalami kemajuan dari waktu ke waktu. Dan saat ini menjadi system operasi computer yang banyak digunakan untuk perangkat elektronik seperti tablet dan handphone dan lainnya.

Perintah Dasar Linux

Untuk mampu membuat atau menjalankan perintah dasar linux diperlukan suatu command tertentu. Perintah pada Linux ada yang berasal dari perintah bawaan maupun eksternal. Perintah bawaan (built in) pada Linux merupakan bagian dari shell, sedangkan perintah eksternal dapat dieksekusi atau ditulis dalam suatu commad Bahasa pemrograman dan di compile menjadi bilangan biner sehingga dapat diproses oleh system atau disebut Shell Scripts. Command ini digunakan untuk menjalankan suatu program tertentu. Jadi bila anda ingin menggunakan Linux, Anda wajib mengetahui perintah dasar yang digunakan dalam system operasi ini. Berikut ini merupakan beberapa command atau perintah dasar linux yang dapat anda gunakan untuk ingin menjalankan suatu perintah :

 

$df -h -> same as my computer in windows

$fdsik -l -> list partition

$man <cmd> -> manual

$clear -> clear the screen

$^l -> clear the screen

$ls -> list content

$ls -l -> list content in long listing format

$ls -al -> list all subcontent in long listing format

$ll -> an alias for the above

$ls -R -> list content recursively

$l. -> list hidden files

$ls -F -> list content and classify them

$alias -> display all aliases for current user

$alias <statement> -> make alias eg alias c=’clear’

$unalias <alias> -> remove alias eg unalias c

$exit -> log out from the system

$logout -> log out from the system

$^d -> log out from the system

$tree -> list content in a tree (hierarchial) diagram

$tree -d -> list subdirectories only – no files

$tree -p -> list content with their permissions

$cd <directory> -> change directory to…

$cd .. -> change to parent directory

$cd – -> change to previous directory

$cd -> change to home directory

$cd ~ -> change to home directory

$pushd -> change dir with pwd

$cat -> display a content of a file

$pwd -> print work (current) directory

$pwd -P -> print parent working dir of this symlink dir

$mkdir <directory> -> make directory

$mkdir -p <directory> -> make parent directories also if it does not exist

$touch -> make a 0 byte file if it does not exist

$cp -> copy (for files)

$cp -a -> copy (for directories)

$cp -p -> copy and preserve date and time

$mv -> move OR rename

$rmdir -> remove empty directory

$rm -> remove (for files)

$rm -f -> remove forcefully ( ” ” )

$rm -r -> remove recursively (for directories)

$rm -rf -> remove recursively and forcefully ( ” ” )

$cat -> display content of the file

$cat -n -> display content of the file and number the lines

$cal -> display calendar for current month

$date -> display system date and time

$date -s ‘<value>’ -> change system date and time in mm/dd/yy

$hwclock -> display the hardware clock

$hwclock –hctosys -> set the system time from the hardware clock

$ln -s -> make a soft/sym/symbolic link

$ln -> make a hard link

$history -> display the list of the last 1000 commands

$! 100 -> Run command 100 in history

$vi -> text editor

$vimtutor -> vi manual withexercise

$pico -> pico manual withexercise

$mcedit -> mcedit manual withexercise

$joe -> joe manual withexercise

$aspell -c <filename> -> check the spelling in the file

$elinks -> check the web links

$file -> display the type of file

$which -> display the path of the binary

$whereis -> display all paths

$hostname -> display system name with domain

$id -> display id info of current user

$id -u -> display user id of current user

$id -un -> display username of current user

$id -g -> display group id of current user

$id -gn -> display groupname of current user

$uptime -> display for how long the system has been running

$tty -> display current terminal number

$users -> display no. of users currently logged in

$whoami -> display username of current user

$who -> display users logged in the system with their respective terminals and time since logged in

$who am I -> display current user, terminal and uptime

$w -> display is details which files are open on whichterminal

Sekian pembahasan mengenai beberapa perintah dasar yang ada di Linux. Perintah dasar Linux ini dapat memudahkan user menjalankan suatu perintah tertentu. Mempelajari beberapa command diatas tentunya sangat bermanfaat bagi anda yang ingin belajar dan baru menggunakan linux. Semoga dapat bermanfaat dan selamat mencoba

Referensi :

https://www.oraclehome.co.uk/?s=linux+command

Penulis : Meilina Eka Ayuningtyas

meilinaeka
meilinaeka

Meilina Eka Ayuningtyas is building her career in Information Technology, Digital Marketing, and Data Analytics. With an educational background in Telecommunication Technology, Meilina combines technical expertise with digital marketing strategies to support business growth and enhance online visibility across various industries.

Articles: 640

Leave a Reply

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

Eksplorasi konten lain dari Direktorat Pusat Teknologi Informasi

Langganan sekarang agar bisa terus membaca dan mendapatkan akses ke semua arsip.

Lanjutkan membaca

Secret Link