71 votes

Is there a terminal command to list folder size and corresponding file sizes within on Ubuntu 14.04 (Trusty Tahr)?

I like to use simply: du -chd 1 | sort -h It outputs the total size of each sub-directory from the current directory location (the "1" above), as well as a total of all sub-directories, and sorts it ...
Oli's user avatar
  • 811
60 votes
Accepted

cURL on Ubuntu 14: all Let's Encrypt certificates are expired (error 60)

The reason is that the "DST Root CA X3" certificate has expired yesterday. To fix it, just disable the certificate on your server. Run: sudo dpkg-reconfigure ca-certificates On the first ...
Finesse's user avatar
  • 1,121
31 votes

cURL on Ubuntu 14: all Let's Encrypt certificates are expired (error 60)

Edit the file /etc/ca-certificates.conf Find and comment with ! the line like this !mozilla/DST_Root_CA_X3.crt Save the file and update certificates with command sudo update-ca-certificates
mikep's user avatar
  • 459
26 votes

How can I remove the ^M from my file in sublime text 3?

This can be done without a plugin via the menu at the top or though the statusbar (but you need to enable the feature). To change it through the menu at the top click View -> Line Endings -> Select ...
K.B.'s user avatar
  • 361
19 votes

Hyper-V Clipboard and Integration Services in Ubuntu

Since this question was asked (re ~ Ubuntu 15.04) things have progressed significantly with regards to Hyper-V & Ubuntu 18.04.1 with regards to ‘Enhanced Session Mode’. There are two approaches ...
George 2.0 Hope's user avatar
18 votes

How to sign into "root" account by default on Windows Subsystem for Linux Bash terminal

In a command prompt with elevated permissions run the command lxrun /setdefaultuser root lxrun is the tool for performing administrative operations on the LX subsystem.
Jacob Larsen's user avatar
18 votes
Accepted

How to sign into "root" account by default on Windows Subsystem for Linux Bash terminal

The command to set the default Linux user is different in different versions of Windows. For versions of WSL up to the Fall Creators Update, run the following command in an elevated Windows command ...
Fred Lackey's user avatar
18 votes
Accepted

Can I map a IP address and a port with /etc/hosts?

Can I map a IP address and a port with /etc/hosts No. The /etc/hosts file is part of your system's domain name resolver (it will check this file, then check DNS). The resolver's job is to convert ...
LawrenceC's user avatar
  • 74k
17 votes

How can I remove the ^M from my file in sublime text 3?

You can use dos2unix command in linux (package dos2unix) or change line endings in Sublime Text under menu item View / Line Endings.
Jan Čejka's user avatar
15 votes
Accepted

Disabling OOM killer on Ubuntu 14.04

This is a XY problem; that is, you do have a problem (X), whether you know it or not, and believe you can solve things by solving a different problem, which is problem Y. Why is it that you want to ...
LSerni's user avatar
  • 8,465
10 votes

Hyper-V Clipboard and Integration Services in Ubuntu

Unfortunately it doesn't work. It looks like the correct answer here is to either: SSH into your box so you can cut & paste into the your Windows SSH window Use Oracle's VirtualBox. Cut & ...
Ryan Shillington's user avatar
9 votes
Accepted

useradd user with group with same uid and gid

Thanks to Tom Yan, I've ended up solving my issue by creating a group with the same name then added the user to that group. So I did the following: sudo groupadd -r -g 1234567 nexus \ && ...
Fadi's user avatar
  • 331
8 votes

Can I map a IP address and a port with /etc/hosts?

This solution worked for me with nginx If you are using nginx you can use Nginx as reverse proxy and do something like this below Example server { listen testdev.com:80; server_name ...
Charles's user avatar
  • 181
8 votes

How can I remove the ^M from my file in sublime text 3?

^M is \r (Control-M, or carriage return). This is likely because the user who committed the file was using windows, which uses \r\n for its line endings. Linux uses only \n, hence you see the ^M at ...
Attie's user avatar
  • 20k
7 votes

Ubuntu turns on webcam but black screen in cheese

I know this sounds stupid, but it's worth a try. Some laptop models have a physical shutter, so the reason for the black screen is because the shutter's closed. You can usually open it with a ...
KayleMaster's user avatar
7 votes

Trimming NTFS and ext4 Formatted SSD

TRIM is a file system level operation and must be supported for each file system you are using. The ext4 driver supports the fstrim command under Ubuntu 14.04 but the NTFS driver does not. You need a ...
Stéphane Tréboux's user avatar
7 votes

Unable to form a link of a file which is in sites-available to a directory sites-enabled in remote server using ansible?

Set force=true to create the symlink. force the creation of the symlinks in two cases: the source file does not exist (but will appear later); the destination exists and is a file (so, we ...
jasonz's user avatar
  • 228
7 votes
Accepted

How do I install Clang 4.0 on Ubuntu 14.04?

I believe you can do it this way: sudo apt-add-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main" sudo apt-get update sudo apt-get install clang-4.0 lldb-4.0 This is based ...
Giacomo1968's user avatar
  • 55.6k
7 votes

cURL on Ubuntu 14: all Let's Encrypt certificates are expired (error 60)

FYI on CentOS like (RPM Based) systems, use: yum reinstall ca-certificates
Marc Pope's user avatar
  • 179
6 votes
Accepted

Prevent Ubuntu 14.04 from locking on virtualbox if Windows is locked

As thomasa88 suggests, the Win+L command to lock your screen will be received by both your host OS (Windows 7) and your guest OS (Ubuntu). You have two options to solve this: While in your guest OS ...
Ian Campbell's user avatar
6 votes

cannot execute binary file: Exec format error

Mach-O 64-bit x86_64 executable is the binary executable file format used on OS X. If you downloaded this from somewhere, it seems like you downloaded the OS X version rather than the Linux version.
Barmar's user avatar
  • 2,401
6 votes
Accepted

Permission denied when I try to pair to a Bluetooth speaker on Ubuntu 14.04

I solved this issue, simply by removing the bluetooth device from the bluetooth icon on the menu bar, re-scanning, and adding it.
Hakim's user avatar
  • 163
6 votes

How can I remove the ^M from my file in sublime text 3?

To whom may not want to install additional plugin to remove ^M new lines, In sublime text setting, add "trim_trailing_white_space_on_save": true, to auto remove space when saving. (This step might be ...
harrrrrrry's user avatar
6 votes
Accepted

What is the difference between /sys/class/block and /sys/block

The latter exists for compatibility reasons, because sysfs originally had dedicated code for block devices, but later those became just another "class". See commit v2.6.24-158-gedfaa7c36574: Driver ...
u1686_grawity's user avatar
5 votes

How to change Mozilla Firefox quit shortcut?

To disable the shortcut without installing extensions: Type about:config in the address bar Type browser.showQuitWarning in the search field Change the value to true
Matthew's user avatar
  • 1,328
5 votes

Why is apt-get downloads so slow

In my case, I had set a bandwidth limit in /etc/apt/apt.conf.d/50unattended-upgrades: // Use apt bandwidth limit feature, this example limits the download // speed to 70kb/sec Acquire::http::Dl-Limit &...
mwfearnley's user avatar
  • 7,433
5 votes

Yellow Triangle on C Drive after Disabling Secure Boot

Run this command from elevated command prompt: manage-bde -off C: This will disable Bitlocker protection for your system drive. You can check your status with this command: manage-bde -status C:
EvgeniObruchkov's user avatar
4 votes

Why is apt-get downloads so slow

The apt-fast package can be installed in all currently supported versions of Ubuntu by adding the apt-fast/stable PPA to your software sources and installing it using these commands. sudo add-apt-...
Niel's user avatar
  • 41
4 votes

method by which I can track down a list of flash drives

When USB devices are connected to a Ubuntu Linux system, entries are placed in /var/log/dmesg. You can view those entires with dmesg | grep -i usb, but you won't find the details you are looking for ...
moonpoint's user avatar
  • 5,178
4 votes

WSL(ubuntu/windows) AppData\Local\Lxss doesn't actually sync back to ubuntu, ideas?

New files that are created via Windows Explorer are possibly not appearing in bash because they are missing special LXSS NTFS attributes. When LXSS creates files in the LXSS root, it attaches ...
Ryan's user avatar
  • 191

Only top scored, non community-wiki answers of a minimum length are eligible