LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-14-2021, 08:30 PM   #1
krygeNNN
LQ Newbie
 
Registered: Sep 2021
Posts: 8

Rep: Reputation: Disabled
Accidently removed ls command


I accidentally removed my ls command from /usr/bin/ls . How can I replace it ?
Using arch, Linux kernel 5.14.3
 
Old 09-14-2021, 08:40 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
What happens when you try to reinstall it via your package manager?
 
Old 09-14-2021, 08:49 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Welcome to LinuxQuestions.

FYI ls is usually part of the GNU Core Utilities package.

The package manager is called pacman.
 
Old 09-14-2021, 09:22 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
michaelk is quite correct. The ls man page contains a link to the coreutils website.

I'm not conversant with pacman, but, if it offers the option, choosing to reinstall coreutils might be the way to go.
 
Old 09-15-2021, 05:37 PM   #5
krygeNNN
LQ Newbie
 
Registered: Sep 2021
Posts: 8

Original Poster
Rep: Reputation: Disabled
thanks solved
 
Old 09-15-2021, 07:50 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Thanks for the update. Glad you got it fixed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removed accidently removed panel at Suse 11.1? alte_mann SUSE / openSUSE 6 01-29-2009 04:19 AM
accidently removed internet icon firedancer Ubuntu 3 08-07-2007 07:38 AM
HELP! accidently removed files RobHill Linux - General 2 06-01-2007 01:04 PM
Fixing the menu bar?? Accidently removed some icons.... Dimitriy Debian 1 10-29-2005 10:06 AM
dselect, removed necessary packages accidently eggsally Debian 3 06-02-2004 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration