Most Popular
1500 questions
93
votes
6 answers
Opposite of tail: all lines except the last n lines
How can I discard the last n lines of a file with a unix command line filter?
That would be sort of the opposite of tail: tail discards the first n lines but pipes the rest through, but I want the command to pipe everything through except the last n…
Dr. Hans-Peter Störr
- 2,339
93
votes
4 answers
How does the computer know that the PC was not properly shut down?
Actually, this question struck me because of power cuts in my house. When there is a power cut, there is a sudden loss of power from the computer.
How does the computer know that the shutdown was not properly done?
FrozenKing
- 1,410
- 4
- 23
- 35
93
votes
6 answers
Verifying USB connection speed (USB 3 or USB 2?)
I've purchased several new USB 3 capable drives to use with my new (USB 3 capable) laptop. They connect ok but I suspect they're silently falling back to USB 2. The sustained transfer rates I'm seeing are around 30 Mb/s for both reads and writes,…
Molomby
- 1,945
93
votes
4 answers
Disable a Windows service from the command line
I want to disable a Windows service but I don't want to:
Open the "Services" management console
Scroll to the name of the service
Right-click Properties (or double-click)
Change the Startup Type: to disabled
Apply
Click "Stop"
I don't want to…
Kevin Driedger
- 3,171
93
votes
11 answers
Can I force Google Chrome to remember passwords?
Is there a way to force Google Chrome to remember passwords for sites that have autocomplete turned off?
Clarification:
I am a programmer, but ideally, I'd like a method that I could help regular users implement, too.
Nathan Long
- 27,435
93
votes
9 answers
How can I remap a keyboard key?
One of my laptop's keys has fallen off. Is there any way I can remap another key to serve as that key? I'll 'sacrifice' the other key because I never use it.
Pure.Krome
- 1,933
93
votes
5 answers
What is the difference between a VLAN and a subnet?
I have read numerous forums and articles regarding VLANs and subnets.
However, I haven't understood the functions of each apart from the following:
Subnets allow the segmentation of a network
VLANs are an isolated portion of a…
PeanutsMonkey
- 9,380
93
votes
20 answers
Can some software physically damage hardware?
I know a question similar to this one has been asked before however it was about installing a 32bit OS on a 64bit laptop. My question is more about damaging the hardware.
I was wondering if there was a way of interfacing with hardware from the OS or…
nopcorn
- 16,982
93
votes
20 answers
How can I dim my computer screen beyond the minimum?
I usually just use Fn + Left or Fn + Right to adjust my screen's brightness but the minimum settings are still too bright for me (especially when I'm working at night). I tried going through the Power Options in the Control Panel (plan brightness…
Ellesa
- 11,185
93
votes
5 answers
Permission denied when accessing VirtualBox shared folder when member of the vboxsf group
I'm running Ubuntu 11.04 (guest) on Windows 7 (host) with the guest additions installed. I have an auto-mount folder that maps to my D: drive on the host which I can access using sudo ls /media/sf_D_DRIVE - however, even when my user (ross) is a…
Ross
- 3,298
93
votes
9 answers
Move WSL2 file system to another drive
As opposed to in WSL1, official docs for WSL2 state clearly that I should place files I access frequently from Linux under the Linux file system. However, I have not found any docs on settings for where inside the Windows file system the Linux file…
Tomas Aschan
- 3,556
93
votes
4 answers
How to make new file permission inherit from the parent directory?
I have a directory called data. Then I am running a script under the user id 'robot'. robot writes to the data directory and update files inside. The idea is data is open for both me and robot to update.
So I setup the permission and owner group…
Wai Yip Tung
- 1,031
- 1
- 8
- 5
93
votes
4 answers
What is the difference between pressing Alt+Tab and Ctrl+Alt+Tab?
When I press Alt+Tab, then I get a window to switch between windows. With Ctrl+Alt+Tab, I get the same result. What is the difference between them?
wasif
- 9,176
93
votes
6 answers
How to ignore a tracked file in git without deleting it?
My team uses sourcetree as our git client. There is a third-party plugin in our project. It needs several configuration files. These files cannot be generated automatically. They store account name, login tokens and some temporary options, which…
Liz
- 1,031
93
votes
1 answer
Pressing "Ctrl + S" by mistake while using Vim
If you press Ctrl + s while using vim would result with vim to look like as if it is being locked/stuck without you being able to make more changes unless you press Ctrl + q.
Could someone explain what is happening and why?
Hint - it might be…
dankilev
- 1,051
- 1
- 8
- 9