writelmka.blogg.se

Mac terminal commands cd
Mac terminal commands cd









mac terminal commands cd

  • If a command confuses you, try running it with the –help flag, which will often display basic instructions on the given command.
  • Enable colored terminal, this makes it easier to browse through large amounts of files.
  • Use the tab key, the tab key will autocomplete directories and filenames for you.
  • ping determine network latency by pinging another host.
  • rm rm removes the specified file or directory, there is no warning so use with caution.
  • mac terminal commands cd

    kill -9 kill the specified process id (basically force quit for the command line).ps -aux list all processes running from all users, -ux will list only processes of current user.top display a continuously updated list of all running processes, including memory and cpu usage, PID is the process ID which you would use to kill a process.touch creates a file with the given name, eg: touch test.txt will create a blank text file.cat | more display contents of a file screen by screen by ‘piping’ the contents through more.

    mac terminal commands cd

    cp copies a file to either a new filename or destination.mv mv is able to rename files or move them, depending on usage.cd move to the specified directory, cd /Applications will move to your applications folder.ls -la list all contents of a directory including hidden files.











    Mac terminal commands cd