Jump to content
Welcome to InsanelyMac Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Allan

      Forum Rules   04/13/2018

      Hello folks! As some things are being fixed, we'll keep you updated. Per hour the Forum Rules don't have a dedicated "Tab", so here is the place that we have our Rules back. New Users Lounge > [READ] - InsanelyMac Forum Rules - The InsanelyMac Staff Team. 
Sign in to follow this  

What is Terminal ?

1 post in this topic

Recommended Posts

By LordPum


Original Post ( Italian ) : http://www.insanelymac.com/forum/topic/222809-terminale-cose/


Things about the terminal ?

We may have seen the word "terminal" many times. But not everyone knows what the terminal really is.

First of all, it is an application located in /Applications/Utilities. The use of terminal is derived from UNIX which allows you to control the machine only through the command line. In fact, the terminal is present in OS X because OS X itself is based on UNIX. The usefulness of terminal lies in the fact that many operations can be performed much faster with the terminal and it allows us to use administrator privileges, as may be required.



If you want to delete a file from the recycle bin(Or Trash in OS X), but you are told that the file is protected and continuing expunging could do harm to your system. But you're sure that deleting this file won't cause you trouble though system warns. You can try with the terminal.

rm insanely.txt is deleting the file insanely.txt


What if you have lots of files which you want to eliminate? You can also use terminal in the following way:

cd .Trash
sudo rm -dfri *.*

After each line, you should press "Enter". The command rm means eliminate, while sudo means that you want to delete as root, the administrator of the computer. You will be prompted for the password every first time you use the sudo command.

Option "-dfri" is needed for this:

- the r is used to delete the subdirectories of the directories in the trash

- the d is used to remove the files in the directory in the trash

- the f is used to force the cancellation or ignored if the file is protected or "apparently "used by some processes

- the i is used to ask you to confirm the deletion of the files. Do not use if you are going to delete many files, but it could be useful in the case where you are unsure of what the rm command would delete.

At last, *. * indicates the file to be deleted. In this case it represents all files in the folder.


For more information: http://www.insanelymac.com/forum/index.php?showtopic=225608

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.