The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 2,480β€…    Votes:  33β€…    βœ… Solution
Tags: command-line   18.04   ls  
Link: πŸ” See Original Answer on Ask Ubuntu πŸ”—

URL: https://askubuntu.com/q/1105870
Title: Filenames with space showing as 'file name' after upgrade to 18.04
ID: /2018/12/31/Filenames-with-space-showing-as-_file-name_-after-upgrade-to-18.04
Created: December 31, 2018    Edited:  December 31, 2018
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


This ls behavior change was from 2016 but is finally making it’s way into Ubuntu.

To get back the old behavior use ls -N.

Optionally you can use an environmental variable:

QUOTING_STYLE=literal ls

Make it an alias, or set export QUOTING_STYLE=literal in your ~/.bashrc to achieve the old behavior.

You can read the link above for more details including the history of when, where, why and how this all came to be. There are quite a few comments under the author of ls changes where he justifies the new behavior:

A few points about the change.

⇧ How to make grub menu appear instead grub minimal bash-like in booting? Cronjob not executing, but command works  β‡©