{}const=>[]async()letfn</>var
Development

First steps in the command line: commands that every beginner should know

The command line is not a terrible magic, but a powerful developer tool. We analyze in simple words why it is needed, what commands to use from the first steps and how they will help in real work.

К

Kodik

Author

2 min read

Many beginners are frightened by a black window with a flashing cursor. It seems that this is something ancient and incomprehensible. But in fact, it is the superpower of a programmer.

Command line (aka Terminal or CMD) is a tool with which you communicate directly with the system. Sounds cool? You bet! 😎

  • manage files and folders without a mouse,

  • run scripts and programs,

  • work with Git, Python, Node.js, Docker and other tools,

  • as well as automate the routine.

System navigation.

Getting to know the basic commands, without which you can't do:

Team

What it does

pwd

Shows where you are now

ls

List of files and folders in the current directory

cd папка

Go to the specified folder

cd ..

Go up one level

mkdir имя_папки

Create a new folder

rmdir имя_папки

Delete empty folder

cd projects
mkdir new_app
cd new_app
pwd

🧠 Tip: if you are working on Windows, the equivalent of ls will be the command dir.

🔥 100,000+ students already with us

Tired of reading theory?
Time to code!

Kodik — an app where you learn to code through practice. AI mentor, interactive lessons, real projects.

🤖 AI 24/7
🎓 Certificates
💰 Free
🚀 Start learning
Joined today

Working with files.

Managing files in the terminal is simple:

Team

Description

touch файл.txt

Create an empty file

cat файл.txt

Show file contents

rm файл.txt

Delete file

cp файл.txt папка/

Copy file

mv файл.txt новая_папка/

Move or rename file

touch notes.txt
cat notes.txt
mv notes.txt backup/

Useful tips and tricks

  • clear — clear the terminal screen

  • history — show command history

  • !номер — execute the command from the history by number

  • ↑ / ↓ — scroll through previous commands

  • tab — auto-complete (saves a lot of time!)

  • sudo — execute the command on behalf of the administrator (carefully)

Command line in real life

You'll be surprised, but almost all developers use the terminal every day. It is needed to run servers, install packages, work with Git, automate tasks and even deploy projects. By mastering it, you will become not just a user, but the owner of your computer 💪

If you want to master the terminal from scratch, start with small steps. Enter a couple of new commands every day. In a week you won't be able to do without it!

And in the application Code There are interactive lessons where you learn to write code directly with practice. We also analyze how to use the command line when working with Git and Python.

We also have an active Telegram channel where we discuss cool ideas, share experiences and analyze tasks together — learning becomes not only useful, but also fun.


Do you remember your first command in the terminal? Write in the comments what it was — ls, cd or rm wrong 😅

🎯Stop procrastinating

Liked the article?
Time to practice!

In Kodik, you don't just read — you write code immediately. Theory + practice = real skills.

Instant practice
🧠AI explains code
🏆Certificate

No registration • No card