Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.

Sign up to join this community
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top

Top Questions

9 votes
2 answers
1k views

Is there a file besides /etc/passwd that contains/defines my UID?

4 votes
3 answers
568 views

bash + how to compare arg to one of the disks in linux machine

2 votes
6 answers
249 views

awk filter rows that only consist a single letter

3 votes
5 answers
261 views

Bash: sed or awk rewrite of numerical sequence

2 votes
5 answers
274 views

Swap lines in a file

1 vote
3 answers
318 views

What is a command? [closed]

2 votes
2 answers
251 views

find files matching pattern inside directory matching another pattern

2 votes
1 answer
250 views

Prevent shell script from hanging on a line

4 votes
1 answer
171 views

Why I need to type press Enter key to finish this command? [duplicate]

2 votes
1 answer
228 views

What will happen to the rest of the file if write() is interrupted by a power cut?

0 votes
2 answers
107 views

echo file names containing 'a' and 'b' in either order [duplicate]

0 votes
6 answers
81 views

How to ignore all text containing special character more than once?

-1 votes
3 answers
74 views

sed or awk: replace only the n-th occurence of a string

3 votes
1 answer
235 views

Use the parent directory from the symlink instead of where the directory actually resides on the filesystem

2 votes
2 answers
124 views

Command line - save sub-strings conditionally

3 votes
2 answers
149 views

Convert each line of a text file into a separate image using imagemagick convert

2 votes
2 answers
86 views

Replace digits and then characters pattern with sed

3 votes
1 answer
99 views

How can i use a parameter as an inner array-name to my script?

2 votes
1 answer
253 views

Notepad++ has stopped working

0 votes
2 answers
56 views

Parameter expansion `${parameter#word}` not working as expected

-2 votes
3 answers
60 views

How to remove forward slashes from file in unix shell using sed? [duplicate]

0 votes
2 answers
31 views

bash: determining whether a variable specifically exists in the environment?

2 votes
2 answers
79 views

replacement for tr with utf-8 capabilities

2 votes
2 answers
79 views

Check numbers in each line on a specific column in one variable against all lines in two specific columns in another variable using awk

0 votes
3 answers
52 views

How to display a prompt and prevent execution against basic but dangerous commands like mv or rm

0 votes
2 answers
66 views

How to replace all occurrences of a sequence starting with a given string to the next appearance of a symbol?

1 vote
1 answer
37 views

awk replace column value with increment values if length equals

1 vote
1 answer
60 views

What signal do bg and fg send?

0 votes
1 answer
42 views

`find` command doesn't return array like element, how to work around this

0 votes
1 answer
45 views

How to install LAMP stack for Pop!_OS

0 votes
2 answers
38 views

Trying to create a while loop to output content of one file to another

-3 votes
2 answers
79 views

how to ignore negative numbers

1 vote
1 answer
61 views

GNU parset is not working in a script but works in terminal

0 votes
1 answer
58 views

What are all the IPs that I see in the result of `ip a`

0 votes
1 answer
35 views

Do grep and cp treat "recursive" the same?

0 votes
1 answer
34 views

zsh: how to get associative array length?

0 votes
2 answers
33 views

How to execute the next command in pipe only if previous have at least one result?

0 votes
1 answer
39 views

Count the number of words ends with specific character using Bash

1 vote
2 answers
39 views

Parallel md5sum on all *.txt files in directory

1 vote
4 answers
49 views

Split the line into next line after a matching pattern

4 votes
0 answers
80 views

Ubuntu ls doesn't show all the files, but when I "ls filename", it shows up?

0 votes
1 answer
37 views

Trying to do a perfect sed replacement

-1 votes
1 answer
60 views

Memory Management with Segmentation

1 vote
1 answer
77 views

Substitution in html file using awk

0 votes
2 answers
46 views

How do I list all background processes?

-2 votes
3 answers
46 views

all possible matched pairs and associated information

0 votes
2 answers
58 views

xargs running more than one command?

0 votes
0 answers
74 views

docker: Error response from daemon: failed to create shim: OCI runtime create failed


Looking for more? Browse the complete list of questions, or popular tags. Help us answer unanswered questions.