🔹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
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
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.
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 ↓↓
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
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.