missing (console command) cd

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
shengchieh

missing (console command) cd

Post by shengchieh »

Funny! The console command, cd, disappeared. It is not in /usr/bin, /bin, or /sbin. Everything else (like ls, cp, pwd, ...) is there.

I used cd a few days ago. All I did is to update flash-plugin - can't think of anything else I've done lately as root. cd is not in Synaptic Package Manager.
Is it part of a package? Where is it?

Sheng-Chieh
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Flemur
Level 20
Level 20
Posts: 10097
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: missing (console command) cd

Post by Flemur »

'cd' is weird. It still works for you doesn't it?

$ which cd
(nothing!)

$ which ls
/bin/ls

$ alias cd
bash: alias: cd: not found

$ cd /
$ find -iname cd
./usr/share/X11/xkb/symbols/cd

It's not a 'real' command like 'ls', or an alias for something else, it's a .... keyboard symbol?

Edit: Come to think of it, I found out about this the hard way: I manually remove almost all entries from most 'locale' or 'languages' system directories (bleachbit and locale-purge don't remove these entries), e.g.

Code: Select all

$ ls /usr/share/locale
en  en@boldquot  en@quot  en@shaw  locale.alias
...compare to your system.

Anyway, /usr/share/X11/xkb/symbols has a bunch of 2-letter files that are the same as the language/locale files, and I deleted 'cd', thinking it was a language, and other stuff, too. (Easily fixed by copying them from a system backup).

So, ha ha that was pretty dum, er, no, um, I meant that it was a learning experience.
Last edited by Flemur on Thu Feb 12, 2015 3:31 pm, edited 3 times in total.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: missing (console command) cd

Post by xenopeek »

The one command that would have answered what a command is, is `type` :D

Code: Select all

$ type cd
cd is a shell builtin
To get a summary of all shell builtins, run the command `help`.
Image
Locked

Return to “Xfce”