Most Popular

1500 questions
255
votes
12 answers

How do I add locale to ubuntu server?

I currently have those locales: locale -a C en_AG en_AG.utf8 en_AU.utf8 en_BW.utf8 en_CA.utf8 en_DK.utf8 en_GB.utf8 en_HK.utf8 en_IE.utf8 en_IN en_IN.utf8 en_NG en_NG.utf8 en_NZ.utf8 en_PH.utf8 en_SG.utf8 en_US.utf8 en_ZA.utf8 en_ZW.utf8 POSIX How…
Silver Light
  • 2,647
255
votes
8 answers

Sudoers file, enable NOPASSWD for user, all commands

Preface This is a fairly complex question related to the sudoers file and the sudo command in general. NOTE: I have made these changes on a dedicated machine running Ubuntu Desktop 13.04, that I use purely for learning purposes. I understand it's a…
nicholsonjf
  • 2,741
  • 2
  • 17
  • 8
254
votes
12 answers

How to uninstall LibreOffice?

Which package should I remove to completely remove libreoffice? I have no need for office tools. That's the one gripe I have with package managers like apt, there's no simple way to perform the essential task of removing unwanted software :S
lapin
  • 2,805
254
votes
9 answers

Is it possible to get a list of most recently installed packages?

Is it possible to get a list of packages that were most recently installed through apt-get?
253
votes
2 answers

Customizing tray/taskbar date display in Ubuntu with GNOME 3

On previous versions I had the date displayed. Now it just shows the current day but not the day's number or the month. Is there a way to customize the clock or tray/taskbar more in GNOME shell on Ubuntu 17.10 and later?
neuromage
  • 2,744
253
votes
15 answers

How do I enable syntax highlighting in nano?

Can nano do syntax highlighting like gedit and vim? How can I enable it? I need at least bash and python syntax highlights.
Oxwivi
  • 18,559
253
votes
10 answers

How to burn a Windows .iso to a USB device?

I want to burn a Windows ISO to a USB device in Ubuntu. How do I do this? I know how to burn a Ubuntu ISO into a USB device, but with a Windows ISO it's not the same.
alerbeham
  • 2,555
253
votes
20 answers

Running a .desktop file in the terminal

From what I can gather, .desktop files are shortcuts that allow application's settings to be customized. For instance, I have lots of them in my /usr/share/applications/ folder. If I open that folder in nautilus , I can run these applications just…
Malabarba
  • 10,576
253
votes
5 answers

How can I retrospectively create a default home directory for an existing user in terminal?

I created a user without a home directory and now I want to create a home directory for them. Not just a folder called /home/new-user , but a complete default home directory with all the normal folders and hidden files, etc. How can I do that?
Jo Rijo
  • 2,665
253
votes
3 answers

How to open file with default application from command line?

In Nautilus, when you double click a file, it will open it with the default application associated with the file's extension. For instance, .html files will open in a web browser and .pdf will be opened with Document Viewer. Is there a way to…
253
votes
7 answers

Why does "(base)" appear in front of my terminal prompt?

I'm wondering why I have (base) on the left of my terminal prompt. If I run source ~/.profile in the terminal, it disappears. If I close that terminal and reopen a new terminal, (base) is there again. I'd like to know what it is. Here's the content…
Jimmy
  • 2,633
252
votes
25 answers

How to show only hidden files in Terminal?

I have a directory that contains thousands of files, some of which are hidden. The command ls -a lists all files, including hidden ones, but I need to just list hidden files. What command should I use?
nux
  • 39,252
252
votes
8 answers

How do I add a user to the "sudo" group?

In /etc/sudoers I see this: # Allow members of group sudo to execute any command after they have # provided their password # (Note that later entries override this, so you might need to move # it further down) %sudo ALL=(ALL) ALL So how do I add a…
252
votes
3 answers

System has not been booted with systemd as init system (PID 1). Can't operate

I use WSL2 on Windows 11. I want to run the systemctl command in Ubuntu 20.04, but it gives me the following error: System has not been booted with systemd as init system (PID 1). Can't operate. Failed to connect to bus: Host is down How can I fix…
251
votes
8 answers

How do you test the network speed between two boxes?

I have a gigabit network set up in my house and a few Ubuntu based boxes. Out of complete curiosity I would like to check the speed between the two boxes. I am not having any problems with speed or anything, it really is just the geek in me that is…
Jacob Schoen
  • 5,315