Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

terminal

  1. N

    Volume on disk2s2 failed to mount

    A few days ago I left an external hard drive connected to my MacBook. MacBook's battery drained and therefore the drive was "not properly disconnected". Ever since I can't have access to my drive anymore. I've been trying to mount it or verify it with Terminal as well as Single User Mode fsck...
  2. F

    Indexing /Users/Shared with Spotlight

    Hi! Anyone know if there's a way to force Spotlight to index the contents of the /Users/Shared folder? I tried sudo mdutil -i on /Users/Shared but that didn't work. I also tried adding and removing the folder to the Spotlight Privacy exclusion list in System Settings. Didn't work either.
  3. R

    Renaming Finder Items Using Find & Replace?

    Hi I need a quick solution to a problem. We have over 15000 images that need renaming. Is there a simple way to find text in a file name (from a cvs file) and replace text in a file name (again from a csv file)?? Eg. File Name - AA021 asphalt/fuchsia FRONT.jpg We have a CSV of full names...
  4. Z

    becoming a Terminal expert

    How can one become a Terminal expert? (i'd appreciate it in getting feedback from users that know the Terminal whereabouts)
  5. G

    Missing all my applications after terminal-command

    I have been frustrated by the sorting in Finder, and tried to default sort, but it did not work in all folders. I searched around on apple forums, and found that many wrote that you had to delete .DS_Store files, so I finally tried this (although I usually stay away from the terminal). Seemed...
  6. mmphosis

    bash — command line shell / Terminal

    I am running Mac OS X 10.5.8 (Leopard), and this is the version of bash, the shell that is installed: /bin/bash --version GNU bash, version 3.2.17(1)-release (powerpc-apple-darwin9.0) Copyright (C) 2005 Free Software Foundation, Inc. I just downloaded and built the latest version of bash. GNU...
  7. S

    macOS Parse a POSIX file path into variables

    Hi all, I'm a newbie to the world of AppleScript, but I'm trying to put together a pretty simple script to parse apart a file path and create a .txt file at the end. For example, the source file path would be: /Users/Matt/Desktop/3840x2160 I would want to create separate variables from Users...
  8. G

    memory rapidly reducing and copy paste problem since using ditto command in terminal

    hi, I used sudo ditto command in terminal to copy a folder. I saw that nothing was being copied in the paths I chose and I quit terminal while it was still doing the ditto... I didn't know how to terminate the command itself. ever since my memory is rapidly lowering. for example it is 15.46 gb...
  9. angelhair0

    Left Cmd/Opt/Ctrl/Fn/Shift keys not working + start-up options not working in Terminal

    I have a multi-layered question here. My left side command, option, control, function, and shift keys do not work as of yesterday. It happened all of a sudden while working in Logic. Restarting didn't help, and I couldn't run many of the start-up options because of the keys not working. I...
  10. Dfanoe

    macOS I need help for a terminal script

    I really need help... I am NEW to this scripting, using terminal and whatnot, so please be patient :-). I have a list of filenames (currently with no file extension) in an Excel file and I need to copy those specific files from one folder to another. I tried using this script in Terminal...
  11. X

    macOS Disable kext for external optical mouse by terminal without causing kernel panic

    Hello everyone, I would like to know if there's a way to disconnect external mouse support on the MacOs High Sierra 10.13 for some testing purposes. The test needs to do 10 sleep cycles, leave the computer awake for 30s and sleep it by 60s. When the mouse is connected to the mac, by some...
  12. U

    calendar 'cal' is not displaying correctly

    Hello I have recently upgraded both my mac book pro and mac book air from Yosemite to High Sierra. And I noticed that when I open up a terminal and type in the 'cal' command to see calendar. The highlighted date is not displaying properly. Instead it looks like its surrounded by these brackets...
  13. U

    calendar 'cal' not displaying date properly

    Hello I have recently upgraded both my mac book pro and mac book air from Yosemite to High Sierra. And I noticed that when I open up a terminal and type in the 'cal' command to see calendar. The highlighted date is not displaying properly. Instead it looks like its surrounded by these brackets...
  14. organicCPU

    macOS shell - arrange images by inode numbers

    Overview: How can I edit the inode number (ls -i /path/to/file) of certain files after file creation on a FAT-32 filesystem? Why I'd like to do this: During the holiday season I encountered a problem with jpg images on USB flash drives showing up in some weird order on a Philips TV. After all...
  15. T

    Resolved umask type behavior on user connected by network sharing

    My network scanner is configured to drop files into a well defined location on my MacBook and it correctly drops files there. Trouble is the default umask value seems to be 077 which means that when it drops scans then I need to do a sudo'd chmod to give myself (or the wife) permissions to the...
  16. invincible-guy

    Safe to remove - .rnd and .CFUserTextEncoding

    As a cleanup routine, I remove files from ~/Library/Logs and ~/Library/Caches directory. I also remove ~/.Trash and ~/.DS_Store My question - Is it safe to remove ~/.rnd and ~/.CFUserTextEncoding? What are these files/folders for?
  17. H

    macOS NEWBIE needs help with terminal - Volume selection

    Hey everyone. I am currently trying to change the directory for my screendumps on my Macbook Pro 2011 Late running High Sierra. I am succesful in changing my directory on my SSD/main drive, but simply can't figure out how to change the default directory to my other volume - my old HDD. I am...
  18. H

    Saving Screendumps to another Volume

    Hey everyone. I am currently trying to change the directory for my screendumps on my Macbook Pro 2011 Late running High Sierra. I am succesful in changing my directory on my SSD/main drive, but simply can't figure out how to change the default directory to my other volume - my old HDD. I am...
  19. camelia

    Terminal command?

    Hi, I found somewhere the following terminal command and a keep it because It is useful, but I forgot to add the description of what it does, can someone please remind me what is its purpose? shasum /Volumes/Install\ macOS\ Sierra/Install\ macOS\...
  20. T

    Unable to open Zip file

    Hello fellow Mac users, I have a problem that I hope you folks can help me with or at least point me in the right direction. I'm sure this has come up a lot with mac users as I have done a lot of searching for answers. The problem is, non of the suggested solutions I have found have been...