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
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.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
missing (console command) cd
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: missing (console command) cd
'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.
...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.
$ 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
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?
Your data and OS are backed up....right?
Re: missing (console command) cd
The one command that would have answered what a command is, is `type`
To get a summary of all shell builtins, run the command `help`.
Code: Select all
$ type cd
cd is a shell builtin