Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Single user mode character limit ?

I am trying to remove files in single user mode (opened via cmd-S at stat up) but i cannot write the file name since the path to the listed file is long and it goes to the start of the line again and again. is there any character limit for each line?


for example : when i try to wrtie this:

rm /private/var/folders/cd/s5rr8_ujksvghdd87123t2200000gn/0//com.apple.LaunchService-0234.csstore


the cursor goes back to the beginning of line after i wrtie "....LaunchServ"


So I cannot write the command. Thanks in advance for any help.


Posted on Mar 4, 2019 1:27 PM

Reply
Question marked as Best reply

Posted on Mar 4, 2019 2:17 PM

UNIX filenames are 255 characters, and pathnames can be no more than 1024.


In single user mode, you can expand the length of your typing line:


export COLUMNS=1024


and the next long typing line will go wide. This also effects other output so be aware of that side effect.

4 replies

Single user mode character limit ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.