Mind or computer(If it is full, there is a problem.) , is it desktop or laptop, when the all the space is occupied , we need break which is the philosophy of 5 days work culture. When the entire system jam-packed with projects, it becomes slow, so what do you do? In this situation , we need either empty the system manually or we should know the concept of linux commands.
It's true that you have the essential and obsolete projects/ files in your system, obsolete files should be deleted without leaving the trashes back into the system.
The most preffered solution depends upon the requirement and security-
-LS lists all downloaded youtube videos, movies and files.
-pwd presents the present working directory, so that you can look back on the movies you have watched and you want to delete it.
-Written security because linux command built for varifying your system is secure.
-cd stands for change the wanted diretory and cd .. elevate you to parent directory.(C:\ in windows and home directory on mac.)
-cd or cd ~ takes you to forcefully to your laptop's home folder on terminal.
-- cd / moves you the root directory of your file system, this is the starting point of your system.
- "cd -" sail back to previous directory.
touch file.txt, generate an empty file.
mkdir: Empowers your system to create a directory Directory.
rmdir: For deleting a directory.
rm- remove a folder containing your favourite movies , you have watched them.
rm -rf .git -
rm is remove , -r means recusive (containing space) and f means forcefully.
cat : This is a pet cat which will display you the contents of your file.
curl: What will happen when we curl a url? means you can dispatch a http request and the url will provide you the response.
Test User Registration:
curl -X POST http://localhost:3000/api/auth/signup \
-H "Content-Type: application/json" \
-d '{
"email": "test@example.com",
"password": "Test@123",
"fullName": "Test User"
}'
curl is the command and -X is the flag which will specify you the get, post , put delete request for api testing.
we will write curl -X POST URL -H
-H means header, we are specifying the content-type , we will pass the json format.
-d denotes the data and we will include the request of the project.
This is the first blog on the Rabbit Hole series on the linux. We introduced the movies which was filling space and rm for deleting the files and folders. We will jump into the curl and learn about the full series about curl, what's possible with help of curl.

Top comments (0)