Unix
Unix

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).

 

 iOSMac Useful UNIX commands to be used on Terminal [Mac]
Open Terminal app on your Mac / Useful UNIX commands

 

[divider] Useful UNIX commands to be used on Terminal [/divider]

 

  • 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

 iOSMac Useful UNIX commands to be used on Terminal [Mac]
Listed files and folders

 

[divider] Useful UNIX commands to be used on Terminal [/divider]

 

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

 iOSMac Useful UNIX commands to be used on Terminal [Mac]
Listed files and folders with details

 

[divider] Useful UNIX commands to be used on Terminal [/divider]

 

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

 iOSMac Useful UNIX commands to be used on Terminal [Mac]
Listed files and folders including hidden files

 

[divider] Useful UNIX commands to be used on Terminal [/divider]

 

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

 iOSMac Useful UNIX commands to be used on Terminal [Mac]
Users logged in

 

[divider] Useful UNIX commands to be used on Terminal [/divider]

 

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

 iOSMac Useful UNIX commands to be used on Terminal [Mac]
Current directory path is shown

 

[divider] Useful UNIX commands to be used on Terminal [/divider]

 

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

Command to type (as an example):

clear

 iOSMac Useful UNIX commands to be used on Terminal [Mac]
Cleaned screen after clear command run

 

[divider] Useful UNIX commands to be used on Terminal [/divider]

 

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.

 

 iOSMac Useful UNIX commands to be used on Terminal [Mac]
@vicenteporfilio Follow Me On Twitter

 

 

Quieres comprar un iPhone, iPad, MacBook o cualquier dispositivo tecnológico al mejor precio, en este canal se publican las mejores ganas y ofertas.