DEV Community

Cover image for Basics Terminal Command Every Web Developer Should Know.

Basics Terminal Command Every Web Developer Should Know.

Gaurav Singh on September 28, 2023

Home Directory ~ See all files in the current Directory ls See in which Directory you are currently now pwd Clear Console clear ...
Collapse
 
jonrandy profile image
Jon Randy 🎖️

The touch command isn't actually for creating new files. It's for updating the access and modification times of the specified file or files. The fact that it creates the file if it doesn't exist is merely a convenient side effect.

Collapse
 
gaurav_webdev93 profile image
Gaurav Singh

Yes. You're right that the touch command didn't intend to create the new files, If files already exist then we can access & modification the file otherwise it'll create a new file

Collapse
 
thestillfracture profile image
Chris Howard

It's not a command, per se, but the up/down arrow functionality is something everyone should know. Toggles through previously entered commands. This is very handy if you're doing the same tasks several times over (avoids extra typing) and is helpful in reviewing what you've done in the event that it didn't work as intended.

Collapse
 
commdao profile image
commdao

Bro, you just changed my life

Collapse
 
baduit profile image
Lena

And then you become addicted to it like me and press 11 times the up arrow to find back a ls :D

Collapse
 
gfallasc profile image
Gabriel • Edited

Agreed with @kwnaidoo, also it is good to understand the concepts of Redirections when using UNIX commands, that would be a good follow-up post of more advanced topics as well as using pipes like ps aux | grep python.

Collapse
 
lotfijb profile image
Lotfi Jebali

This article is helpful but in my opinion it could've been much helpful if you mentioned Git commands

Collapse
 
gaurav_webdev93 profile image
Gaurav Singh

I'll post another article related to Git commands

Collapse
 
sreno77 profile image
Scott Reno

This is a good introduction

Collapse
 
ant_f_dev profile image
Anthony Fung

In addition to Mac, these will also work in Linux. A subset also works with Windows command line interfaces too (Cmd/PowerShell).