user avatar
user avatar
user avatar
Kusalananda
Moderator
  • Member for 10 years, 8 months
  • Last seen this week
192 votes
Accepted

Understanding the -exec option of `find`

146 votes
Accepted

Process with weird random name consuming significant network and CPU resources. Is someone hacking me?

128 votes
Accepted

How is this command legal? "> file1 < file2 cat"

105 votes
Accepted

Why does a program with fork() sometimes print its output multiple times?

89 votes
Accepted

What is the difference between "tail -f" and "tail -F"?

88 votes

Bash test: what does "=~" do?

84 votes

Bash: Assign output of pipe to a variable

82 votes

How can I kill minerd malware on an AWS EC2 instance? (compromised server)

81 votes

I lost files by using the "mv" command and I don't know where they are!

78 votes
Accepted

How can I harden bash scripts against causing harm when changed in the future?

74 votes
Accepted

renaming a huge folder: is it risky?

72 votes
Accepted

How can I sort numbers in a unix shell?

72 votes
Accepted

Why is mv so much faster than cp? How do I recover from an incorrect mv command?

69 votes

How to pass password to mysql command line

69 votes

Is the slash (/) part of the name of the Linux root directory?

65 votes
Accepted

Using shell variables for command options

61 votes
Accepted

Why do I need to place “do” in the same line as “for”?

60 votes

How to run a program in a clean environment in bash?

54 votes
Accepted

What is the purpose of "~" in the command "sed 's~ ~~g'"?

53 votes
Accepted

cat a very large number of files together in correct order

53 votes

Why doesn't shell automatically fix "useless use of cat"?

53 votes

Is it possible to exclude a directory from the find command?

52 votes
Accepted

How to filter out lines of a command output that occur in a text file?

52 votes
Accepted

How to stop a script from running if it's not root (and echo "Not running as root! Exiting...")

51 votes
Accepted

Why are executables in e.g. /usr/sbin writable by root?

51 votes
Accepted

How can I set the default editor as nano on my Mac?

51 votes
Accepted

Duplicate file x times in command shell

50 votes
Accepted

How can I change a file to a directory? Files lost after find+mv

50 votes
Accepted

What is the application of `rev` in real life?

49 votes
Accepted

Bash multiplication and addition

1
2 3 4 5
222