Most Popular

1500 questions
412
votes
10 answers

How do I add text to the beginning of a file in Bash?

Hi I want to prepend text to a file. For example I want to add tasks to the beginning of a todo.txt file. I am aware of echo 'task goes here' >> todo.txt but that adds the line to the end of the file (not what I want).
user479534
  • 4,331
  • 3
  • 17
  • 6
410
votes
10 answers

Clear cache for specific domain name in chrome

I want to clear the cache for a specific domain name in Chrome. Is there an extension or other method that I can use to do this?
Benjamin Crouzier
  • 5,598
  • 11
  • 30
  • 44
408
votes
11 answers

How to check which apache modules are enabled/installed?

Which is the most elegant way to check which apache modules are enabled?
udo
  • 7,951
  • 7
  • 37
  • 47
406
votes
4 answers

How to remove an entry from Chrome's Remembered URLs from the url bar?

I've got a URL in Chrome "local.mysite.com" that autopopulates when I start typing "local.my" into the URL bar. Note that this URL DOES NOT EXIST in my browser history (at chrome://history/#e=1&p=0) because it isn't a real site and therefore…
cmcculloh
  • 5,607
  • 8
  • 24
  • 25
406
votes
11 answers

What is the home directory on Windows Subsystem for Linux?

When I start bash on Windows Subsystem for Linux, it drops me in the directory /mnt/c/Users/ When I ls this directory, I see the directories Desktop, Documents, etc. that I can see are in C:\Users\ using the Windows File…
bcf
  • 4,203
  • 3
  • 11
  • 9
403
votes
7 answers

How to remove systemd services

If I install a new service then decide I don’t want that application anymore and delete it, the service is still listed in the output from systemctl as error. Where is this coming from and how can I remove them thoroughly?
eMeL
  • 4,131
  • 3
  • 14
  • 6
399
votes
7 answers

How do I exit an SSH connection?

I’m connecting to a server via SSH to send a message to a socket server using a command like: ssh 181.169.1.2 -p 5566 After the connection is established and I write the message and send it I can’t exit the text mode. I’m only allowed to enter…
Andreea
  • 4,101
  • 3
  • 14
  • 9
399
votes
5 answers

What are PATH and other environment variables, and how can I set or use them?

Questions about setting environment variables the PATH are very common here, and in most cases the answers are very similar to each other. In the future it would be nice to have a good Q/A for this. So the question is: What are environment…
slhck
  • 214,800
  • 65
  • 581
  • 571
396
votes
14 answers

How to disable the "Get Windows 10" icon shown in the notification area (tray)?

This icon showed up in my taskbar notification area today and I cannot seem to get rid of it: Clicking on it displays the following screen: So how do I disable or remove the "Get Windows 10" icon?
ProfessionalAmateur
  • 3,405
  • 5
  • 18
  • 19
394
votes
15 answers

Why are we still using CPUs instead of GPUs?

It seems to me that these days lots of calculations are done on the GPU. Obviously graphics are done there, but using CUDA and the like, AI, hashing algorithms (think bitcoins) and others are also done on the GPU. Why can't we just get rid of the…
ell
  • 3,994
  • 4
  • 17
  • 20
392
votes
11 answers

How can I delete a symbolic link?

I created a symlink using mklink. Now I need to change it but I can't figure out how to delete it so I can recreate it correctly.
Ben V
  • 4,072
  • 3
  • 18
  • 13
391
votes
17 answers

How to prevent Gnome-shell's Alt+Tab from grouping windows from similar apps?

I love pretty much everything about how Gnome Shell handles app-switching through Alt+Tab. My one gripe with it, though, is how it forces the user to use Alt+` (or Alt+ whatever key above the Tab key for non-US keyboard layouts) to switch between…
Waldir Leoncio
  • 4,648
  • 3
  • 18
  • 23
387
votes
1 answer

Ping faster than light

I just discovered very strange thing while testing my internet connection. My ping is smaller than it should be. For example ping time to Arizona State University is about 14ms. eryk@eryk-pc:~$ ping www.asu.edu PING www.asu.edu.cdn.cloudflare.net…
dagi12
  • 2,549
  • 3
  • 11
  • 10
385
votes
9 answers

How to get the summarized sizes of directories and their subdirectories?

Let's say I want to get the size of each directory of a Linux file system. When I use ls -la I don't really get the summarized size of the folders. If I use df I get the size of each mounted file system but that also doesn't help me. And with du I…
2ndkauboy
  • 4,013
  • 4
  • 16
  • 8
384
votes
11 answers

Selecting columns in Visual Studio Code

Does Visual Studio Code support selecting columns of text? I have not yet found this feature, so I am wondering if it is hidden somewhere. I am familiar with holding down Alt while selecting text, but Visual Studio Code does not behave this way.
ChiliYago
  • 4,675
  • 3
  • 23
  • 22