Tag: unix

3158 Check if a directory exists in a shell script 2008-09-12T20:06:25.757

2600 How can I pretty-print JSON in a shell script? 2008-12-09T08:20:45.137

1833 In the shell, what does " 2>&1 " mean? 2009-05-03T22:57:00.817

1556 How can I profile C++ code running on Linux? 2008-12-17T20:29:24.277

1416 How do I grep recursively? 2010-01-01T05:10:12.547

1405 What do 'real', 'user' and 'sys' mean in the output of time(1)? 2009-02-17T11:33:51.660

1152 Why should text files end with a newline? 2009-04-08T12:16:39.483

1075 Loop through an array of strings in Bash? 2012-01-16T13:21:16.343

1050 npm throws error without sudo 2013-04-22T15:35:37.163

1018 Looping through the content of a file in Bash 2009-10-05T17:52:54.210

988 Difference between sh and bash 2011-04-20T03:33:16.753

772 What are the dark corners of Vim your mom never told you about? 2009-04-07T17:57:30.437

756 How do I list all cron jobs for all users? 2008-09-25T18:01:31.083

750 How to download a file from server using SSH? 2012-02-24T08:25:28.777

726 What is the meaning of "POSIX"? 2009-11-23T00:42:49.093

714 grep, but only certain file extensions 2012-09-20T16:30:34.553

707 How do I remove the passphrase for the SSH key without having to create a new key? 2008-09-21T22:39:02.527

680 Use grep --exclude/--include syntax to not grep through certain files 2008-10-21T13:41:01.673

668 How to permanently set $PATH on Linux/Unix? 2013-02-01T00:57:08.747

656 Using ls to list directories and their total sizes 2009-06-19T17:29:00.347

648 What is the difference between a symbolic link and a hard link? 2008-10-09T04:05:41.840

625 How can I convert a Unix timestamp to DateTime and vice versa? 2008-10-30T10:30:29.927

622 Given two directory trees, how can I find out which files differ? 2011-02-14T21:52:07.650

553 How to get full path of a file? 2011-03-10T20:45:28.027

552 Socket options SO_REUSEADDR and SO_REUSEPORT, how do they differ? Do they mean the same across all major operating systems? 2013-01-17T21:45:44.917

543 How to display line numbers in less (GNU)? 2009-05-06T20:52:09.217

529 sed command find and replace in file and overwrite file doesn't work, it empties the file 2011-03-02T18:44:28.380

517 How can I reverse the order of lines in a file? 2009-04-12T21:34:53.810

506 How to determine the current shell I'm working on? 2010-07-24T21:35:28.150

489 How do I pause my shell script for a second before continuing? 2014-02-07T06:00:59.660

477 How to run a shell script on a Unix console or Mac terminal? 2009-04-09T11:36:26.107

472 How to do a logical OR operation in Shell Scripting 2010-11-06T01:48:33.717

453 How can I exclude directories from grep -R? 2011-07-03T20:48:43.077

450 What's a concise way to check that environment variables are set in a Unix shell script? 2008-11-21T01:11:27.913

444 Argument list too long error for rm, cp, mv commands 2012-07-02T07:43:34.240

443 How do I write stderr to a file while using "tee" with a pipe? 2009-03-28T01:53:04.557

442 How to kill a process running on particular port in Linux? 2012-07-20T16:39:17.320

436 How do I get cURL to not show the progress bar? 2011-09-10T18:30:50.083

434 How can I extract a predetermined range of lines from a text file on Unix? 2008-09-17T13:40:59.947

434 Bash tool to get nth line from a file 2011-05-16T19:33:42.480

422 What does ^M character mean in Vim? 2011-04-30T17:37:24.557

420 How to pretty print XML from the command line? 2013-04-18T18:50:04.107

419 What does the number in parentheses shown after Unix command names in manpages mean? 2008-09-15T13:37:47.130

416 How to assign name for a screen? 2010-07-08T09:15:44.357

413 Why is 1/1/1970 the "epoch time"? 2009-07-07T07:40:29.460

410 OS X: equivalent of Linux's wget 2010-12-31T20:19:54.737

397 How to colorize diff on the command line? 2012-01-10T08:49:10.107

386 How to split a large text file into smaller files with equal number of lines? 2010-01-06T22:40:39.823

381 Unix shell script find out which directory the script file resides? 2008-10-28T08:19:24.870

373 Why does ENOENT mean "No such file or directory"? 2013-11-11T09:25:40.360

370 Is PowerShell ready to replace my Cygwin shell on Windows? 2009-02-21T19:42:06.913

362 How can I copy the output of a command directly into my clipboard? 2011-02-27T02:10:46.180

360 Using getopts in bash shell script to get long and short command line options 2008-12-31T05:49:05.397

360 grep a tab in UNIX 2009-12-01T11:23:13.213

354 Aborting a shell script if any command returns a non-zero value? 2009-05-04T18:55:50.217

350 How to read a file into a variable in shell? 2011-09-15T07:29:16.757

342 What are .a and .so files? 2012-03-21T16:53:08.520

330 Restarting cron after changing crontab file? 2012-04-17T15:03:57.083

311 How can I format my grep output to show line numbers at the end of the line, and also the hit count? 2010-10-19T12:06:02.317

306 How do I grep for all non-ASCII characters? 2010-06-08T20:48:13.650

289 Equivalent of *Nix 'which' command in Powershell? 2008-09-15T15:13:59.460

288 What is the fastest way to get the value of π? 2008-08-01T05:21:22.257

281 Going to a specific line number using Less in Unix 2011-12-21T08:04:01.470

279 How to make the 'cut' command treat same sequental delimiters as one? 2010-11-10T10:04:15.497

278 What are file descriptors, explained in simple terms? 2011-03-10T07:17:21.980

278 Concatenate multiple files but include filename as section headers 2011-05-06T21:55:42.707

273 What does "opt" mean (as in the "opt" directory)? Is it an abbreviation? 2012-09-29T02:11:49.150

267 How to convert DOS/Windows newline (CRLF) to Unix newline (LF) in a Bash script? 2010-04-10T15:03:34.317

265 Delete empty lines using sed 2013-05-07T08:20:18.830

261 use space as a delimiter with cut command 2009-05-03T11:24:23.133

261 How to list all users in a Linux group? 2010-05-14T15:28:43.810

257 Unix: How to check permissions of a specific directory? 2008-12-03T17:37:48.653

257 What is the cleanest way to ssh and run multiple commands in Bash? 2010-12-10T18:50:48.410

255 How can I grep for a string that begins with a dash/hyphen? 2010-03-11T19:14:42.977

255 How to get the primary IP address of the local machine on Linux and OS X? 2012-11-10T13:32:11.317

254 nginx error connect to php5-fpm.sock failed (13: Permission denied) 2014-05-03T10:47:54.333

251 Extract file basename without path and extension in bash 2010-04-19T01:25:28.833

251 What is the difference between "#!/usr/bin/env bash" and "#!/usr/bin/bash"? 2013-05-03T18:10:24.737

249 How do you do a case insensitive search using a pattern modifier using less? 2008-08-19T20:00:33.900

246 Diff files present in two different directories 2010-01-07T11:25:54.920

244 sometimes my file just freezes in my vi |vim, what happened? 2010-08-05T22:54:36.330

241 How to represent multiple conditions in a shell if statement? 2010-09-29T22:41:32.427

240 Unlimited Bash History 2012-02-26T21:15:35.057

236 How to escape spaces in path during scp copy in Linux? 2013-11-08T11:36:22.953

235 Linux: copy and create destination dir if it does not exist 2009-10-07T06:55:27.377

235 Why do you need ./ (dot-slash) before executable or script name to run it in bash? 2011-06-13T13:28:01.063

231 Getting root permissions on a file inside of vi? 2008-08-04T03:34:02.860

230 How can I recall the argument of the previous bash command? 2010-07-30T12:16:17.517

228 Delete newline in Vim 2010-10-21T00:32:15.763

225 What's an easy way to read random line from a file in Unix command line? 2009-01-15T19:01:30.500

224 What is a bus error? 2008-10-17T14:48:44.083

223 How to use 'find' to search for files created on a specific date? 2008-10-01T14:56:37.770

222 How do I use the nohup command without getting nohup.out? 2012-05-02T06:34:45.140

220 How do I syntax check a Bash script without running it? 2008-10-05T12:51:25.120

217 What are the uses of the exec command in shell scripts? 2013-08-21T07:22:49.933

216 How to find encoding of a file in Unix via script(s) 2009-04-30T05:13:48.480

216 127 Return code from $? 2009-11-19T13:05:44.460

216 How to uncompress a tar.gz in another directory 2013-08-23T12:04:28.550

213 Display filename before matching line (grep) 2013-03-15T12:12:25.243