Skip to main content
terdon's user avatar
terdon's user avatar
terdon's user avatar
terdon
Moderator
  • Member for 11 years, 8 months
  • Last seen this week
  • London or Athens
1282 votes
Accepted

How can I replace a string in a file(s)?

587 votes
Accepted

What are the shell's control and redirection operators?

509 votes
Accepted

How can I get the current working directory?

246 votes

Bash - how to run a command after the previous finished?

223 votes

Shell scripting: -z and -n options with if

199 votes
Accepted

Use scp to transfer a file from local directory X to remote directory Y

188 votes
Accepted

If you ^Z from a process, it gets "stopped". How do you switch back in?

181 votes

How to output only file names (with spaces) in ls -Al?

150 votes

How to exit a shell script if one part of it fails?

137 votes

scp and compress at the same time, no intermediate save

133 votes
Accepted

How do I remove the first 300 million lines from a 700 GB txt file on a system with 1 TB disk space?

116 votes
Accepted

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

111 votes

top command on multi core processor

107 votes
Accepted

Is there a file that will always not exist?

106 votes
Accepted

How to shutdown Linux at specific datetime from terminal?

104 votes
Accepted

'ps' arguments to display PID, PPID, PGID, and SID collectively

92 votes
Accepted

"tree" command output with "pure" (7-bit) ASCII output

89 votes

sed capture groups not working

86 votes

What causes this green background in ls output?

80 votes

Recursively delete all files with a given extension

76 votes

how to pass environment variable to sudo su

75 votes
Accepted

Text editor for printing C++ code

74 votes
Accepted

Grep from the end of a file to the beginning

74 votes

How do I start all shell sessions in a directory other than $HOME?

73 votes
Accepted

Can root/superuser read my read-protected files?

72 votes
Accepted

Join multiple sed commands in one script for processing CSV file

69 votes

Why avoid using "&&" in bash script?

67 votes

How can I get my sed command to make permanent changes to a file?

66 votes
Accepted

Bash: slice of positional parameters

66 votes
Accepted

How to merge two files based on the matching of two columns?

1
2 3 4 5
115