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

Automatically Shut Down Your Computer at a Specified TimeAutomatically Shut Down Your Computer at a Specified Time
Can You Change an Apple ID Without Losing EverythingCan You Change Your Apple ID Without Losing Everything? Learn How to Keep What You Need
Force Shut Down a Mac Force Shut Down or Restart a Frozen Mac
Download Spotify on Mac6 Quick Steps to Download & Install Spotify on macOS
Install Altstore Install AltStore on an iPhone or iPad
Install Macos on a Virtual Machine Install MacOS on a Virtual Machine Using VirtualBox
Tell if Your Mac Is Too Old to UpdateTell if Your Mac Is Too Old to Update
Open Exe Files on Mac Open Executable Files on Mac: Virtual Machine, Boot Camp, or Wine
Turn Off Password Login on a Mac Disable Password Login on Mac (Plus Troubleshooting)
Find Your IP Address on a Mac Find Your Internal & External IP Address on a Mac
Change the Scroll Direction on a Mac Change the Scroll Direction on a Mac
Turn On a Mac Computer5 Ways to Turn On a Mac Computer - wikiHow
Create a TXT File on MacCreate a TXT File on Mac
Quickly Open the Launchpad on a MacQuickly Open the Launchpad on a Mac