5 Commands Line Every Programmer Should Know

Command lines are important for any area of programming.

Thyall D'greville
3 min readApr 27, 2022
Photo by Gabriel Heinzer on Unsplash

Introduction

Nowadays, with the development of numerous software, graphical interfaces, text editors, etc. Basic and necessary knowledge for any programmer has been neglected or forgotten. However, its use is very important for the development of any application, so I will list 5 important commands in this article.

Settings

To execute these commands we are using the Windows Subsystem for Linux (WSL2) with the Ubuntu operating system.

linux terminal (WSL2)

Command lines (CLI)

ls (List)

ls: Listing the contents of a directory

ls command

there are some flags that can be used.

ls -a : Listing all contents of the current directory

ls -a command

ls -l: Listing the non-hidden contents of the current directory in long format

ls -l command

ls -la: Listing all contents of the current directory in long format

ls -la commando

CD (Change directory)

cd: Changing directories

Change to directory dir1

cd .. : Change to the parent directory of the current directory:

cd .. command

MKDIR (Make a directory)

mkdir: Creating a directory

mkdir command

RMDIR (Remove a directory)

rmdir: Deleting an empty directory

rmdir command

CP (Copy)

cp: copy a file

cp command

Conclusion

This is the first article on the CLI topic, we will have more articles focused on the input and output of files as well as pipelines in the area of data science.

Contact

Github

email

--

--