Image Image Image Image Image Image Image Image Image Image

 iOSMac | 06/12/2016

Scroll to top

Top

No Comments

Useful UNIX commands to be used on Terminal [Mac]

Unix
Vicente Porfilio

Today’s tutorial is brought to you to learn some important and basic UNIX commands. These ones should be known by everybody who loves Macintosh’s world. They’re so easy to learn and they’re so useful when using Terminal app.

 

Learn some useful UNIX commands to type in Terminal

 

  • Then, open Terminal application by searching and running it through Spotlight, so hit down ⌘SPACE keys and type ‘terminal‘ (You can use any other way to open it).

 

Open Terminal app on your Mac / Useful UNIX commands

Open Terminal app on your Mac / Useful UNIX commands

 

Useful UNIX commands to be used on Terminal 

 

  • Now, I’m going to teach you several useful UNIX commands to be typed in Terminal’s command line. Remember to hit down ⏎ key (‘Enter’) after type it.

 

ls (list): This command is used a lot. It means to list files and folders. Terminal will show you something like this:

Command to type (as an example):

ls

Listed files and folders

Listed files and folders

 

Useful UNIX commands to be used on Terminal 

 

ls -l (listing with details): This command is the same command than before but it includes details like files permissions. Try, it’ll prompt you more data for each file listed.

Command to type (as an example):

ls -l

Listed files and folders with details

Listed files and folders with details

 

Useful UNIX commands to be used on Terminal 

 

ls -a (listing hidden files): Now you’ll get the same list than before but including hidden files (if they exists).

Command to type (as an example):

ls -a

Listed files and folders including hidden files

Listed files and folders including hidden files

 

Useful UNIX commands to be used on Terminal 

 

who (who is logged): Do you want to know how many users are logged in to your Mac?

This command will show you all users logged.

Command to type (as an example):

who

Users logged in

Users logged in

 

Useful UNIX commands to be used on Terminal 

 

pwd (Print Working Directory): This command will show you your current directory full path. Sometimes you can forget location to current folder. Use this command to remember.

Command to type (as an example):

pwd

Current directory path is shown

Current directory path is shown

 

Useful UNIX commands to be used on Terminal 

 

clear (clear screen): This command is used to clean your Terminal screen.

Command to type (as an example):

clear

Cleaned screen after clear command run

Cleaned screen after clear command run

 

Useful UNIX commands to be used on Terminal 

 

These have been some useful and basic commands to start to know something about UNIX language. Mac OS is based on it and it’s interesting to learn them. We’ll continue with much more UNIX commands.

 

FollowMeOnTwitter Vicente Porfilio

@vicenteporfilio Follow Me On Twitter

 

 

TE RECOMENDAMOS:   ¿Cómo verificar que Apple sigue firmando tu IPSW?