Most Popular

1500 questions
500
votes
8 answers

How to create a bootable Ubuntu USB flash drive from terminal?

Is there any way to create a bootable Ubuntu USB flash drive from the terminal without using any third-party applications like YUMI, Unetbootin, Startup Disk Creator, etc. I tried to create a bootable Ubuntu flash drive with dd method, sudo umount…
Avinash Raj
  • 78,556
496
votes
10 answers

How to select video quality from youtube-dl?

I have installed youtube-dl in my 14.04. I can download video by following command, $ youtube-dl [youtube-link] But I want to know how to select available pixel quality of youtube video(i.e 1080p, 720p, 480p, etc). In software description they…
A J
  • 11,367
  • 17
  • 44
  • 59
493
votes
14 answers

How can I suspend/hibernate from command line?

How can I suspend or hibernate my laptop using command line, without installing additional software?
user1034
  • 4,933
491
votes
16 answers

How can I tell Ubuntu to do nothing when I close my laptop lid?

I would like closing the laptop lid to be a no-op. How can I do that?
badp
  • 12,372
491
votes
8 answers

How do I modify or disable the HUD's use of the Alt key?

A number of games, Emacs, and the terminal make extensive use of the Alt key. Can Unity be configured to respect this key, rather than launching the HUD with it?
EoghanM
  • 5,125
489
votes
8 answers

How to empty swap if there is free RAM?

When I open a RAM-intensive app (VirtualBox set at 2GB of RAM), some swap space is generally used, depending on what else I have open at the time. However, when I quit that last application, the 2GB of RAM is freed up, but the same swap space use…
jfoucher
  • 23,534
488
votes
12 answers

How to use "grep" command to find text including subdirectories

I want to find all files which contain a specific string of text. The grep command works, but I don't know how to use it for every directory (I can only do it for my current directory). I tried reading man grep, but it didn't yield any help.
Smile.Hunter
  • 8,365
487
votes
5 answers

What do the different colors mean in ls?

What do the different colours in Ubuntu's ls command mean? For example, when I type the ls command in one of my folders, I get one of the files in light green, the other (which is a folder) in blue with green highlighting. What do those colours…
Rafid
  • 5,397
485
votes
7 answers

How do I report a bug?

I found a problem with an application on Ubuntu. Questions : How do I best report the issue? What sort of information should I provide?
481
votes
13 answers

How do I install Sublime Text 2/3?

I installed Sublime Text 2 on 12.04 as per this tutorial. However I don't have adequate permissions when launching the program from the Unity launcher. For example I cannot install packages, or if I add a folder to the sidebar when I close Sublime…
477
votes
8 answers

How do I change my username?

Some time ago, when I installed Ubuntu, I chose a rather stupid username for my account that I do not want to use anymore. How do I change this (including the name of my home directory, and the name in the terminal) without losing settings for…
Takkat
  • 142,284
477
votes
2 answers

Differences between /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin

I have six directories with command files. These are /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin and /usr/local/sbin. What are the differences between these? If I'm writing my own scripts, where should I add them? Related: How to understand…
user125111
476
votes
8 answers

How to check hard disk performance

How to check the performance of a hard drive (Either via terminal or GUI). The write speed. The read speed. Cache size and speed. Random speed.
Luis Alvarado
  • 211,503
476
votes
7 answers

What does "cp: omitting directory" mean?

I've issued the following command: sudo cp ~/Transfers/ZendFramework-1.11.4-minimal/library/Zend/* ~/public_html/cmsk.dev/library/ When I do this, I start getting the following messages: cp: omitting directory `Tag' cp: omitting directory `Test'…
MEM
  • 11,065
472
votes
10 answers

How can I update all Snap packages?

I know that I can update a snap package using sudo snap refresh But is there a way to update all snaps, like sudo apt dist-upgrade