Useful commands for macOS

Hello readers and followers,

Today we are going to learn useful commands for a daily purpose. These commands are the basics to learn UNIX/POSIX. We will learn how to manage our terminal application. You can test them on Linux too.

For the cat filename.sh, you need to edit the file on a text editor and type:

#!/usr/bin/sh

echo “hello world”

We done here a copy file, to explain how to remove a folder and a file.

Now, we are going to learn rm -rf. This purpose command is to remove a folder. Before we learn how to remove a file from the hard disk drive.

We are going to see how we can remove a folder.

As we see here, you don’t have the folder anymore, it has been erased.

Now, we are going to see more command.

With more, you must type enter to see more files and folders. When it ends you should type q.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

5 × 3 =

coder by Gleentech
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.