cubemail88
Published in

cubemail88

bash : cd : too many arguments

Photo by Emile Perron on Unsplash

Few days ago, my friend asked me why he can’t enter to a directory called “reddit stock” that created by himself in Linux. The system keep showing “bash : cd : too many arguments”.

[Root Cause]

cd requires exactly 1 argument: The name of the directory that my friend typed reddit stock. System consider the user supplied two arguments split by space, so that’s why you got “to many arguments”.

[Solve]

  1. cd "reddit stock" By enclosing the folder name in quotes
  2. cd reddit\ stockBy including a backslash as shown

--

--

--

東西這麼多,腦袋這麼小!! 來記點東西吧

Recommended from Medium

How to find experienced React Native developers

Foster: how to build your own bookshelf management web application

Shoutout for Kalle Hallden!

პოსტი ფეისბუქიდამ

How to convert Lotus Notes NSF files to Outlook PST format?

Secure architecture for Jaeger with Apache httpd reverse proxy on OpenShift

What Is Development Velocity and How Do You Measure It?

Data Warehouse Automation Using dbt on (Azure) SQL Server

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Lion

Lion

Personal blog note for linux c++ devops : https://medium.com/cubemail88

More from Medium

What is Unix? Its History and Features

Assembly on the ZX Spectrum — Part 2 — Field-FX Demo at EMFCamp

THE FILE DOES NOT EXIST

What is Wayland?