Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [terminal]

Questions about the Terminal application or its terminal emulation should use this tag. Use **command-line** for questions about shells or command-line programs that do not specifically involve Terminal.

Filter by
Sorted by
Tagged with
2
votes
0answers
29 views

Is it safe to delete a user's “Downloads” and “Documents” folders in OS X? [on hold]

When attempting to delete my user account's "Downloads/Documents" folder, I get a beep and nothing happens. But I figure I could probably get rid of them in Terminal with a sudo rm -f...am I right? ...
0
votes
0answers
46 views

Block youtube on safari in hosts file

When I try to block websites on terminal (etc hosts..) it works. But when I try to do it with Youtube, it doesn't. Typing youtube.com as a url won't open it, but if I search youtube on google for ...
0
votes
0answers
10 views

Bash-completion breaks hosts tab completion

Prior to installing Bash Completion, hitting the "tab" key after an "@" character would autocomplete hostnames listed in /etc/hosts. For example, if I started typing: drush @lo [tab] It would ...
0
votes
0answers
15 views

Retrieve old .bash_profile from hard drive using time machine [duplicate]

Apologies if this has already been asked, I searched through the prvious questions but to no avail. Last night, whilst trying to figure out how to open my bash profile through the terminal (its been ...
0
votes
0answers
21 views

How to install parallels tools and make my ubuntu desktop full screen?

I have installed parallels desktop to run ubuntu-18.04.3-desktop-amd64 on my MacBook Pro and after the installation completed, I tried to make it full screen but as the installation of Parallels Tools ...
0
votes
0answers
16 views

Get network adapter info from Mac Terminal [on hold]

I would like to get as much technical information about my MacOS network adapter as possible, including all the technical details, such as vendor, model, features, device driver information, serial ...
-1
votes
0answers
13 views

Window dragging lag on one mac but not on the other; what setting is different?

I have two machines, a macbook and an imac and both have an app which lets me drag windows around. The app has no options. On the macbook, there's no animation or lag while dragging, the window stays ...
0
votes
0answers
22 views

iterm2 issue : open new tab with keeping the same path of previous current tab - strange behavior

I have switched from default terminal on MacOSs Mojave to iterm2. I have an issue about the opening of a new tab from the current tab. Indeed, I would like to be in the same path than the previous ...
0
votes
1answer
30 views

Restore Shell configuration and packages

I just formatted my Mac. I have a backup of my latest status before the format, and I want only one thing from this backup. I want my terminal to be exactly as it was. Mainly I want to have all the ...
1
vote
0answers
13 views

Terminal Hangs (Not Responding)

How can I fix a Terminal hang? Almost every time after the Terminal app goes out of focus, when I move away onto a different app, and then return to it the app just hangs. Sometimes it is only for a ...
1
vote
1answer
27 views

How to keep a process running on the terminal after locking/logging out?

Research: Found no links on internet where someone was able to make it happen. Most answers go round and round without providing a working solution. I'm starting to believe that this is not possible ...
1
vote
0answers
25 views

How to change application Sharing & Permissions using Terminal [duplicate]

If I right-click an application and click Get Info, a window like in the following image pops up: Then, after unlocking the Sharing & Permissions section, let's say I wish to change the ...
2
votes
0answers
29 views

Prepend title of mp3 file using `say` [migrated]

I have a bunch of .mp3 files that I would like to modify so that they start with a voice saying the file name. The easiest way to do this (or so I thought), would be something like the following: for ...
2
votes
1answer
83 views

How to improve into vim of MacOS Mojave the speed of vertical scroll with bottom/up keys?

I transfer the original post from StackOverflow (Original post) to here since this is about Apple specificity. I have a new macbook with Mojave and vim already installed. Unfortunately, even for ...
0
votes
0answers
37 views

Resetting /usr/bin

So I was installing python3, pip, and a few other applications through Homebrew when I first got my Mac. I realized I was doing all this in /usr/bin and not /usr/local/bin, and I wanted to just to ...
1
vote
1answer
93 views

I switched to Catalina and enabled ZSH now my home/end key do not work in terminal

I switched to ZSH from BASH as per the upgrade in Catalina and all is well except my home/end keys no longer work. This can be really annoying trying to move my cursor over super far to the left ...
0
votes
2answers
65 views

list files by date added in terminal with function or script or another

I found this in another post but would like to be able to call a script of function to reduce the amount of typing. ls -a | \ grep -v '^\.$\|^\.\.$' | \ xargs -I {} mdls -name kMDItemFSName -name ...
2
votes
1answer
36 views

Effects of changing shell

Recently Apple changed the default shell to zsh from bash. In the past I made significant changes to my .bashrc file. How should I incorporate those changes into the zsh terminal?
1
vote
0answers
70 views

Compiling GCC on Catalina

I am trying to compile GCC9 on macOS Catalina. The closest tutorial I've found is this one. The tutorial states: In order to build GCC install the required header files in the old location: 1 cd /...
0
votes
0answers
41 views

ld: library not found for -lSystem

New to Mac. I am going to install a software and running make, returns the error: $ make gcc -I/Users/username/softwarename/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/...
0
votes
0answers
28 views

Open /dev/rdisk0 gives “Operation not permitted” error despite using sudo

On Mac OSX Mojave 10.14.6, the following simple code does not work anymore : #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <...
0
votes
0answers
11 views

ssh -p to a VirtualBox Ubuntu instance stops working, error: “Could not resolve hostname ?\200\223p: nodename nor servname provided, or not known”

Is there any reason why ssh -p would stop working and error with a message like below? ssh –p 2222 osboxes@localhost ssh: Could not resolve hostname ?\200\223p: nodename nor servername provided, or ...
1
vote
0answers
29 views

Screwed up my macbook pro built in camera - Need help in command line

http://osxdaily.com/2017/03/01/disable-mac-camera-completely/ Following this advice, at one point I have used cmd lines to either disable or deleted the components...(such an idiot) While sudo chmod ...
1
vote
0answers
83 views

macOS Catalina causing “find: .: Operation not permitted” errors

I have an automation workflow that I use as a Quick Action. It takes a Finder item and calls a shell script with it. Part of the shell script runs a find command on the directory of the Finder item. ...
0
votes
1answer
14 views

Spawning multiple instances of applications via shortcuts

So I'm using BetterTouchTool to set up shortcuts, and I have a bunch that are dedicated to opening various apps. The problem is, if one of those apps are already open, then hitting the shortcut pulls ...
7
votes
1answer
2k views

Suppressing zsh verbose message in macOS Catalina

I know Catalina uses zsh as the default login shell and interactive shell, But it is very annoying when I open iTerm.app or run command with /bin/bash, It shows verbose message like below $ /bin/bash ...
6
votes
3answers
2k views

Restore Access to File System for Emacs on MacOS Catalina

I upgraded to macOS Catalina and see that applications now need to be permitted to access the file system, even the shell running inside Terminal. I work extensively in Emacs which seems to have ...
2
votes
0answers
54 views

Show menu bar icons in Catalina defaults command not working

In Catalina, allowed ZSH full disk access in preferences and ran defaults write com.apple.systemuiserver menuExtras -array "/System/Library/CoreServices/Menu Extras/Bluetooth.menu" "/System/...
2
votes
0answers
45 views

Trigger application “first open” via CLI?

Briefly: I would like to open an application for the first time from the command line, and have it act like it was opened in the Finder for the first time. In more detail: If you download an ...
-1
votes
1answer
25 views

Boot drive not recognised at all

After doing an update for iPad and open Google Chrome to watch streaming movies the MacBook Pro 13 mid 2012 has started to slow down and Chrome closed. I restarted and a flashing folder appeared ...
0
votes
1answer
41 views

Warning: Cask 'xxx' is unreadable: undefined method `method_missing_message' for Utils:Module

$ /usr/bin/find "$(brew --prefix)/Caskroom/"*'/.metadata' -type f -name '*.rb' -print0 | /usr/bin/xargs -0 /usr/bin/perl -i -pe 's/depends_on macos: \[.*?\]//gsm;s/depends_on macos: .*//g' $ brew ...
1
vote
1answer
24 views

Mojave doesn't remember window position/size for a specific application?

Normally on Mojave all applications windows settings are stored automatically. Still I have one program which does not do this, every time I re-open this app I have to maximize (not full screen) it's ...
1
vote
1answer
51 views

Impossible to redirect subprocess stderr on macOS

Running following in Terminal on macOS Mojave php -r 'foo();' 2>/dev/null Produces Fatal error: Uncaught Error: Call to undefined function foo() in Command line code on line 1 Error: Call to ...
2
votes
0answers
32 views

Why doesn't Spotlight look inside shell scripts?

I have a bunch of shell scripts (all plain text files) in /usr/local/scripts If I do fgrep -il '@todo' * there are 14 files which match. If I do mdfind -onlyin /usr/local/scripts '@TODO' there are ...
0
votes
0answers
42 views

CPAN module on macOS: Warning: Cannot install xxx, don't know what it is

I am trying to install a Perl module. > cpan rajce-get Reading '/Users/Ivanov/.cpan/Metadata' Database was generated on Fri, 04 Oct 2019 23:17:03 ...
2
votes
2answers
130 views

grc inside terminal (with different colors into terminal as a function of files size) not working on 10.14.6 Mojave and working on High Sierra 10.13.6

I can get working the tool grc which allows to have colors for permissions and different colors as a function of the size of files listed for example with ls -l command. On my previous MacBook with ...
1
vote
1answer
37 views

Command line “open DIRNAME” fails (but “open FILENAME” is OK)

In a terminal (or xterm, or emacs) window, the command: open dirname (where dirname is . or /tmp or /home/fred) doesn't open the the specified directory in Finder. However: Opening a non-directory ...
1
vote
1answer
73 views

Every time I press enter in the terminal it says Karans-MacBook-Air:~ karanmunjal$. How do I fix this?

My name is Karan and so obviously the laptop is named Karans MacBook Air but I dont think it should show up every time I press enter. Please tell me how to fix this!
0
votes
0answers
33 views

Can't delete iTunes Library in Finder nor in Terminal

In Finder I get the unexpected error occured (code 50). In Terminal I get: rm iTunes\ Library.itl rm: iTunes Library.itl: Invalid argument See also: charlesspencer$ ls -l iTunes\ Library.itl -...
1
vote
0answers
38 views

Disk Utility - Secure Erase is not working in terminal

I'm trying to securely erase my SSD by using diskutil in terminal in the recovery mode (restart --> hold down command+R --> terminal) I first use diskutil list to find the disk name, which is disk0: ...
0
votes
0answers
25 views

Escaping variables when using open 'smb://$LOGIN:$PASSWORD@$SERVER/$PATH'

I'm trying to connect to a server using variables. However I get it to use the variables instead of the variable name. So far I've tried: /usr/bin/open 'smb://"$LOGIN":"$PASSWORD"@"$SERVER"/"$PATH"'...
2
votes
1answer
244 views

Can't change the screenshot directory because “com.apple.screencapture: command not found”

I used to be able to change the screenshot directory by just changing the location and typing in the specifics to the terminal but now I am getting this code and I have no idea what to do. I went ...
3
votes
1answer
40 views

Problem with building project by CMake

I have installed gcc and g++ instead of clang compilers from Xcode, so now I have problem with compiling with cmake. After running cmake I have got error: -- The C compiler identification is unknown -...
0
votes
0answers
21 views

Missing .bashrc file Terminal not working

Terminal is not accepting any commands and I suspect it is due to a missing .bashrc that I couldn't find in the home directory. Please help me restore it without the use of the command line, as it is ...
1
vote
0answers
25 views

Terminal not accepting commands

Last login: Fri Sep 27 15:42:55 on ttys000 You have mail. -bash: EO: command not found -bash: cl: command not found -bash: cl: command not found -bash(7167,0x10a4bf5c0) malloc: can'...
0
votes
0answers
20 views

Problems with terminal [duplicate]

Whenever I open terminal now, the command line displays "dhcp-hol-2139:~ NAME$" how can undo this issue? Thanks!
2
votes
2answers
84 views

“last” command not working properly

I read a few guides online that explain how to use the command last to have a list of user logins. One of the easiest command is: last -s yesterday -t today which should show the list of logins ...
2
votes
1answer
33 views

Customise Mac Terminal command: Control+w

I am trying to find a way to customise Mac Terminal command:Control+w which can also consider delimiters like =, -. Currently Space is only way it considers. For example for the command $foo --option=...
0
votes
1answer
24 views

Is there a way to configure whitelisted websites via terminal?

We currently have parental controls configured on our company Macs that we deploy however it looks like the option for parental control is greyed out and there is a website that is being blocked that ...
1
vote
0answers
33 views

How can I access photos from my camera in Terminal?

I have been trying to compare the speed of importing photos to my Mac from either the camera or by removing the SD card and using a card reader. I have been using the method on question: "Is there a ...