Most Popular

1500 questions
87
votes
2 answers

Why has Raspbian apparently been renamed into "Raspberry Pi OS"?

I was making some routine checks just now and realized this: Raspberry Pi OS (previously called Raspbian) Source: Raspberry Pi OS I found no mention of this in their blog, nor on the Wikipedia page. Why change such a good name as "Raspbian" into…
Rithy
  • 701
87
votes
6 answers

Disable user shell for security reasons

We have several user accounts that we create for automated tasks that require fine-grained permissions, such as file transfer across systems, monitoring, etc. How do we lock down these user accounts so that these "users" have no shell and are not…
Suman
  • 999
87
votes
4 answers

What does size of a directory mean in output of 'ls -l' command?

What does size of a directory mean in output of ls -l command?
Hemant
  • 6,910
  • 5
  • 39
  • 42
87
votes
4 answers

When should I use a trailing slash on a directory?

Possible Duplicate: How linux handles multiple path separators (/home////username///file) Most commands I use in linux behave exactly the same whether I include the trailing slash / character on the end of a directory name or not. For example: ls…
Cory Klein
  • 18,911
87
votes
3 answers

What is the point of the `cd` external command?

As referenced in this fine answer, POSIX systems have an external binary cd in addition to the shell builtin. On OS X 10.8 it's /usr/bin/cd. You can't use it like the builtin cd since it exits immediately after changing its own working directory.…
kojiro
  • 4,644
87
votes
3 answers

Tmux, change window pane by mouse click

Is it possible to use the mouse to navigate between different window panes which are split vertically or horizontally?
daisy
  • 54,555
87
votes
3 answers

Difference between "cd -" and "cd ~-"

The Bash command cd - prints the previously used directory and changes to it. On the other hand, the Bash command cd ~- directly changes to the previously used directory, without echoing anything. Is that the only difference? What is the use…
dr_
  • 29,602
87
votes
7 answers

Bring down and delete bridge interface that's up

How do I remove a bridge that has an IP address that was brought up manually and isn't in /etc/network/interfaces? $ ifconfig br100 br100 Link encap:Ethernet HWaddr 00:00:00:00:00:00 …
87
votes
4 answers

How to mount a disk image from the command line?

I know how to mount a drive that has a corresponding device file in /dev, but I don't know how to do this for a disk image that does not represent a physical device and does not have an analogue in /dev (e.g. an ISO file or a floppy image). I know…
user628544
  • 1,565
87
votes
3 answers

Shell: how to go to the beginning of line when you are inside a screen?

I am inside a screen (screen -Ra). I have a long command, and I am at the end. Instead of keeping the left arrow, how can you go to the beginning of the line? CTRL-A works when I am in a normal window, but when I am inside a screen pressing CTRL-A…
user11498
  • 2,441
87
votes
5 answers

Set a network range in the no_proxy environment variable

I'm in a network using a proxy. I've got machines using lots of scripts here and there accessing each other over HTTP. The network is 10.0.0.0/8. My proxy is 10.1.1.1:81, so I set it up accordingly: export http_proxy=http://10.1.1.1:81/ I want to…
SamK
  • 1,610
87
votes
4 answers

How to change systemd service timeout value?

In the company I am working now there is a legacy service and its init script is using old SysvInit, but is running over systemd (CentOS 7). Because there's a lot of computation, this service takes around 70 seconds to finish. I didn't configure…
Caesar Ralf
  • 1,103
87
votes
8 answers

List all RPM packages installed from repo "X"

How can I get a list of all of the RPM packages that have been installed on my system from a particular repo (e.g., "epel")?
87
votes
5 answers

Run multiple commands and kill them as one in bash

I want to run multiple commands (processes) on a single shell. All of them have own continuous output and don't stop. Running them in the background breaks Ctrl-C. I would like to run them as a single process (subshell, maybe?) to be able to stop…
87
votes
3 answers

Why doesn't cp have a progress bar like wget?

Please note that I don't ask how. I already know options like pv and rsync -P. I want to ask why doesn't cp implement a progress bar, at least as a flag ?
Lamnk
  • 1,510
  • 1
  • 11
  • 10