Q&A for How to Get to the Command Line on a Mac

Return to Full Article

Search
Add New Question
  • Question
    What is the command for my ip address?
    Community Answer
    Community Answer
    ipconfig getifaddr en0
  • Question
    How do I ping the gateway from terminal?
    Community Answer
    Community Answer
    At the command prompt, type "ping " and press Return.
  • Question
    How to find a list of all terminal commands?
    Community Answer
    Community Answer
    Press the Escape key (on the keyboard) twice, then press "y" when you're asked if you want to see all commands.
  • Question
    How to delete a file with Terminal?
    Community Answer
    Community Answer
    You can use "rm -rf " to delete any file. Don't do this unless you know for sure that the file is no longer needed.
  • Question
    Are any Windows commands similar to Mac terminal commands?
    Community Answer
    Community Answer
    Most Windows commands will work in OSX by simply pressing 'command' instead of 'control'. For example, ctrl+v (paste) ctrl+c (copy), ctrl+z (undo) and ctrl+a (select all) still all work on a Mac, just replacing the control key with the command key.
  • Question
    How can I cancel the Open Office message to "Restore Windows"?
    Community Answer
    Community Answer
    From the command prompt, type "cd /Users//Library/Saved Application State". Then, type "rm -rf org.openoffice.script.savedState"
  • Question
    Can sharing files through a network be done between a mac and a windows machine?
    Community Answer
    Community Answer
    As long as file sharing is enabled on both computers, you can share files between a Windows PC and a Mac.
  • Question
    How do you unlock the Terminal to put in a password?
    Community Answer
    Community Answer
    If you want to enter the root password in a terminal window, type "sudo" and press return. You'll then be able to enter the password.
  • Question
    What do I do if I have a new MacBook that cannot be used because I keep getting messages asking for the keychain password? When I enter it I get a message asking for a new keychain password. Any password I enter is not accepted even the ones suggested by the "help" button.
    Community Answer
    Community Answer
    You'll need to contact Apple Support for help.
  • Question
    How do I reboot a Mac after a failed OS install?
    Community Answer
    Community Answer
    Insert a drive or CD containing your preferred OS. When starting up your Mac, hold down the button that gives you boot options. This could either be the "C" key, "F12" or "F8". Boot the CD or USB Drive with the new OS install on it and continue from there.
  • Question
    How do I change the command prompt on an IMAC terminal to access a USB drive?
    Community Answer
    Community Answer
    Type cd /volumes, and then type "ls" to see a list of all drives. When you see the name of your thumbdrive, type "cd ".
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit

Return to Full Article

You Might Also Like

Open a Terminal Window in Mac3 Easy Ways to Open a Terminal Window on a Mac
Open Terminal in Windows Open the Windows Terminal: A Quick Guide
Open the Command Prompt in Windows6 Simple Ways to Open the Command Line in Windows
Applications Folder on MacWhere Is the Applications Folder on Mac? How to Access It & More
Open Applications Using Terminal on MacOpen Applications Using Terminal on Mac
Open a Terminal Window in UbuntuSimple Ways to Open a Terminal in Ubuntu
Run a Program from the Command Line on LinuxRun a Program from the Command Line on Linux
Connect to a Server on a MacConnect to a Server on a Mac
Show Hidden Files and Folders on a Mac Show Hidden Files and Folders on a Mac: 4 Simple Methods
CD to iCloud Drive on Mac CD to Your iCloud Drive on a Mac
Run Command Prompt As an Administrator on Windows4 Ways to Run the Command Prompt as an Administrator in Windows
Quickly Open the Launchpad on a MacQuickly Open the Launchpad on a Mac
Uninstall Programs on Mac ComputersUninstall Programs on Mac Computers
Open a Folder in Cmd Open a Folder in Command Prompt (CMD)