18 Linux Commands every programmer should know

A Thread🧵
🔹pwd
Used to find out the path of the current working directory (folder) you’re in.

The command will return an absolute (full) path, which is basically a path of all the directories that starts with a forward slash (/).

An example of an absolute path is /home/username.
🔹cd
Used to change your current directory

for example:- cd workspace

There are some shortcuts to help you navigate quickly:
-> cd .. to move one directory up
-> cd to go straight to the home folder
-> cd- to move to your previous directory
🔹ls
Used to lists the files and folders in the directory you specify.

By default, this command will display the contents of your current working directory.
🔹cat
Used to list the contents of a file on the standard output (sdout).

To run this command, type cat followed by the file’s name and its extension. For instance: cat file.txt.
🔹cp
Used to copy files from the current directory to a different directory.

For instance, the command cp scenery.jpg /home/username/Pictures would create a copy of scenery.jpg (from your current directory) into the Pictures directory.
🔹mv
Used to move files, although it can also be used to rename files.
🔹mkdir
Used to make a new directory — if you type mkdir Music it will create a directory called Music.
🔹rmdir
Used to delete a directory

rmdir only allows you to delete empty directories
🔹rm
Used to delete directories and the contents within them.

If you only want to delete the directory — as an alternative to rmdir — use rm -r.
🔹touch
Used to create a blank new file through the Linux command line.

for example:-
enter touch /home/username/Documents/Web.html to create an HTML file entitled Web under the Documents directory.
🔹sudo
Used to perform tasks that require administrative or root permissions
🔹man
Used to know more about command and how to use it.

It shows the manual pages of the command
🔹du
Used to check how much space a file or directory takes
🔹df
Used to get a report on the system's disk space usage, shown in percentage and KBs

If you want to see the report in megabytes, type df -m.
🔹diff
Used to compare the contents of two files line by line.

After analyzing the files, it will output the lines that do not match.
🔹ping
Used to check your connection to a server.
🔹history
Used to review the commands you've entered before.
🔹echo
Used to move some data into a file.
Thank you for Reading
I am Vinay, a developer from India, sharing some of the knowledge I gain in my daily life as a programmer and as a Human being

If you like this post, Make sure to
✅Like this post
✅Retweet it
✅ Follow @Vinaystwt for more such content
If you don’t want to miss your weekly parcel of learning, then don’t forget to subscribe to the "Insane Learner" newsletter
getrevue.co/profile/vinays…
If you like this thread, make sure to Retweet it from below

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Vinay Sharma

Vinay Sharma Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @Vinaystwt

28 Dec
Basic of JavaScript Object Notation(JSON) and Flutter

A Thread🧵
JavaScript Object Notation or JSON is an open-standard file format that uses human-readable text to transmit data objects consisting of attributes- value pairs and array data types
In simple language, JSON is simply a format in which you can transfer the data from client to server and server to client
Read 15 tweets
26 Dec
7 Websites you Won’t Believe Exist 🤯

These Websites are very important for you if you are a Web Developer or App Developer

Including One *BONUS* Resource!!

A Thread↓
1⃣Shortly AI
AI-powered tool can continue writing for you in order to transform your ideas into a fully fleshed-out text.

🔗shortlyai.com
2⃣Archive
Internet Archive is a non-profit library of millions of free books, movies, software, music, websites, and more.

🔗archive.org
Read 12 tweets
25 Dec
Twitter is Free University, tonnes of knowledge out there to consumes

But 98.8% don’t consume the right knowledge

Here are the top 10 best Threads of the week you shouldn’t miss 🧵
Read 14 tweets
24 Dec
Programming in Python or JavaScript or dart or Java, every programmer need help from youtube at some point in time so here we go

50+ Youtube channels to learn Programming 🧵 ↓↓
🔹FreeCodeCamp:- Wikipedia for programmers for every getting content on literally every topic.

🔗youtube.com/c/Freecodecamp
🔹Academind:- Academind uploads video tutorials on web development and cover skills like Python, Github, etc.

🔗youtube.com/c/Academind
Read 54 tweets
23 Dec
While Learning Web development or Creating some project in Python or Creating an app using flutter; at some point in time, you will come across the term API and must be wondered what exactly an API is?

Let's understand what an API is in a simple but effective way. ↓↓
Suppose you finally got a chance to go on a date with your partner after this tedious lockdown phase due to Covid-19.

So you decided to visit a restaurant for dinner, and both of you chose the dish you wanted to order and called the Waiter for an order.
So the Waiter is finally at your table, and you order the dishes you want to eat.

Now the Waiter asks the chef to prepare your dish and after some time when the chef finally prepared your dish waiter brings your favorite food to your table.
Read 21 tweets
22 Dec
Whether you are a Programmer writing code in JavaScript or Python or you are an Entrepreneur running a Startup, Today your one of the most crucial needs is the Internet.

But have you ever wondered how does this internet exactly work

Let's Find out ↓↓ Image
The total number of Internet users has grown from 413 million in 2000 to 4.6 Billion active users in January 2021.

Today Internet is the basic need of almost every living being, but did you know How this Internet( earlier known as ARPANET in 1969) works Image
Basically, the Internet works on a large number of computer systems that communicate with each other, or we can say it is a network of networks.

where a network is a group of connected computers that send and receive data from each other. Image
Read 19 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(