Most Popular

1500 questions
86
votes
3 answers

Why is my find not recursive?

I am running the following command, but it is not performed recursively: find . -name *.java I know there are java files further down in the current directory but it is performing the find on the current directory only. I am using OS X, 10.9.
user11498
  • 2,421
  • 4
  • 22
  • 25
86
votes
3 answers

How do services in Debian work, and how can I manage them?

In Windows I have the services manager, where I see all system services, that can be started through Windows itself, I set up the user it uses, the rights management is in there, and I can pass variables and some other information to the services, I…
Erdinc Ay
  • 1,000
  • 1
  • 7
  • 13
85
votes
5 answers

How to make Vim display colors as indicated by color codes?

In short, I'm in an effort to replace less with vim (vimpager). I have settings for scripts to spit out colors (and bold and everything nice) whenever they can. less understands the color codes and displays them nicely. How can I make vim parse the…
phunehehe
  • 20,030
  • 27
  • 99
  • 151
85
votes
10 answers

How do you kick a benign user off your system?

I was googling this a bit ago and noticed a couple of ways, but I'm guessing that google doesn't know all. So how do you kick users off your Linux box? also how do you go about seeing they are logged in in the first place? and related... does your…
xenoterracide
  • 57,918
  • 74
  • 184
  • 250
85
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,544
  • 4
  • 24
  • 32
85
votes
4 answers

What is the difference between procfs and sysfs?

What is the difference between procfs and sysfs? Why are they made as file systems? As I understand it, proc is just something to store the immediate info regarding the processes running in the system.
Navaneeth Sen
  • 9,369
  • 17
  • 58
  • 65
85
votes
1 answer

jq - select an attribute beginning with a string

input json: [ { "id": "89", "hostname": "abcd" }, { "id": "89", "hostname": "babcd" } ] How to modify below filter to get on output only hostname beginning with "abcd"? $ jq -r '.[]|select(.hostname | contains("abcd"))'…
Chris
  • 3,591
  • 7
  • 24
  • 35
85
votes
8 answers

put history command onto command line without executing it

I use !n where (n) is the line number for executing a line in the history file I want executed at the command prompt which I find via history|less. But there is a command line history event I wish to manually modify. How can I insert into the…
Vass
  • 5,271
  • 9
  • 38
  • 45
85
votes
8 answers

Ubuntu update error: "waiting for unattended-upgr to exit"

I'm unable to update my system having two installations of Ubuntu: One is version 16.04 and the other version is 17.04. In both, I'm getting the same error. For ex., in Ubuntu 16.04, I run software updater and get the result as shown below. I did…
Ravi
  • 3,723
  • 13
  • 44
  • 66
85
votes
3 answers

What does an idle CPU process do?

Looking at the source of strace I found the use of the clone flag CLONE_IDLETASK which is described there as: #define CLONE_IDLETASK 0x00001000 /* kernel-only flag */ After looking deeper into it I found that, although that flag is not covered in…
grochmal
  • 8,489
  • 4
  • 30
  • 60
85
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_
  • 28,763
  • 21
  • 89
  • 133
85
votes
1 answer

List of Kill Signals

I'm familiar with several process signals and what they do, but I would like to understand them all. There are three things I would like to find out about each signal. What the signal does When a signal like this is typically sent Any command line…
Dave
  • 975
  • 1
  • 7
  • 5
85
votes
5 answers

Combining tail && journalctl

I'm tailing logs of my own app and postgres. tail -f /tmp/myapp.log /var/log/postgresql/postgresql.main.log I need to include pgpool's logs. It used to be syslog but now it is in journalctl. Is there a way to tie tail -f && journalctl -f together?
bikey
  • 851
  • 1
  • 6
  • 4
85
votes
6 answers

Why can't Linux usernames begin with numbers?

Is there a technical reason why? Is this an artifact from the early days of Linux or Unix, and if so is there a reason why it persists?
43Tesseracts
  • 1,187
  • 2
  • 10
  • 18
85
votes
8 answers

How do I split an audio file into multiple?

I found something for videos, which looks like this. ffmpeg -i * -c:v libx264 -crf 22 -map 0 -segment_time 1 -g 1 -sc_threshold 0 -force_key_frames "expr:gte(t,n_forced*9)" -f segment output%03d.mp4 I tried using that for an audio file, but only…
DisplayName
  • 11,468
  • 20
  • 73
  • 115