Belajar perintah perintah dasar di Debian 12 bersama Guru TKJ

3 min read 5 hours ago
Published on Oct 23, 2025 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

This tutorial provides a step-by-step guide on basic commands in Debian 12, aimed at students in Computer and Networking Engineering (TKJ). Understanding these commands is essential for beginners and will serve as a solid foundation for more advanced topics in Linux systems. Each command is explained with practical advice to help you get started.

Step 1: Check Your Current Directory

To find out your current working directory, use the pwd command.

  • Open the terminal.
  • Type the following command and press Enter:
    pwd
    
  • This will display the full path of the directory you are currently in.

Step 2: List Files and Directories

Use the ls command to see the contents of your current directory.

  • In the terminal, type:
    ls
    
  • This command will show all files and folders in the directory.

Step 3: Change Directory

To navigate to a different directory, use the cd command.

  • To move into a directory, type:
    cd [directory_name]
    
  • Replace [directory_name] with the name of the directory you want to enter.
  • To go back to the previous directory, type:
    cd ..
    

Step 4: Create a New Directory

You can create a new directory using the mkdir command.

  • Type the following command:
    mkdir [new_directory_name]
    
  • Replace [new_directory_name] with the desired name for your new directory.

Step 5: Create a New File

To create an empty file, use the touch command.

  • Execute this command:
    touch [file_name]
    
  • Replace [file_name] with the name of the file you want to create. For example, touch example.txt.

Step 6: Copy Files

To copy files from one location to another, use the cp command.

  • The syntax is:
    cp [source_file] [destination]
    
  • Replace [source_file] with the file you want to copy and [destination] with the target location.

Step 7: Remove Files

To delete files, use the rm command.

  • To remove a file, type:
    rm [file_name]
    
  • Be cautious as this command will permanently delete the file.

Step 8: Edit Files

You can edit text files using the nano text editor.

  • To open a file in nano, use:
    nano [file_name]
    
  • Replace [file_name] with the name of the file you want to edit. Use Ctrl + O to save and Ctrl + X to exit.

Step 9: Reboot the System

To reboot your machine, use the following command:

  • Type:
    reboot
    

Step 10: Shut Down the System

To shut down the system immediately, use:

  • Enter this command:
    shutdown now
    

Conclusion

This tutorial covered essential commands in Debian 12 that every TKJ student should master. By practicing these commands, you will build a strong foundation for further studies in Linux systems and networking. As you become more comfortable, consider exploring more advanced topics like network configuration and server management. Keep practicing, and you'll quickly improve your skills!