Tag: bash

843 How can I sort du -h output by size 2009-02-25T13:42:42.613

725 How to determine if a bash variable is empty? 2009-05-12T17:54:48.967

352 What is the difference between double and single square brackets in bash? 2009-08-09T21:11:51.760

197 How to get current Unix time in milliseconds in bash? 2010-06-14T16:04:17.150

163 How to create a UUID in bash? 2010-01-16T13:41:43.597

158 How do I prevent accidental rm -rf /*? 2011-12-02T17:09:51.627

142 What useful things can one add to one's .bashrc? 2009-05-04T00:32:07.997

139 Keeping a linux process running after I logout 2011-09-15T06:00:40.633

134 How to run a command multiple times, using bash shell? 2011-05-24T15:55:11.860

123 What are the functional differences between .profile .bash_profile and .bashrc 2011-04-20T15:42:27.783

112 Linux command line best practices and tips? 2009-03-02T19:46:09.000

107 How do I sleep for a millisecond in bash or ksh 2013-01-15T13:19:53.530

102 bash: print stderr in red color 2009-08-26T21:10:43.493

96 Clean way to write complex multi-line string to a variable 2009-10-08T10:54:00.063

95 Colors in bash after piping through less? 2009-06-16T13:30:38.390

92 What's the best way to check if a volume is mounted in a Bash script? 2009-08-05T20:16:10.757

92 What is "-bash: !": event not found" 2010-12-02T10:45:21.203

83 Check if array is empty in Bash 2013-02-11T03:59:54.863

82 mysqldump to a tar.gz 2010-01-26T23:15:10.950

80 run script as user who has nologin shell 2012-01-18T13:56:48.523

78 How to add a timestamp to bash script log? 2011-09-10T21:35:11.377

78 How to test if my server is vulnerable to the ShellShock bug? 2014-09-25T14:25:21.157

77 How can I run arbitrarily complex command using sudo over ssh? 2014-09-02T09:21:12.840

74 How to make bash scripts print out every command before it executes? 2009-05-31T13:39:10.640

67 Can you have more than one ~/.ssh/config file? 2012-03-31T17:47:31.450

66 Is there a difference between how two ampersands and a semi-colon operate in bash? 2012-03-24T20:51:07.457

64 Run an interactive bash subshell with initial commands without returning to the ("super") shell immediately 2012-03-09T15:12:02.123

63 Unique Features of bash compared to zsh 2009-05-05T20:38:59.947

63 Log all commands run by admins on production servers 2013-01-20T04:35:22.417

61 How can I edit the welcome message when ssh start? 2012-07-12T04:32:28.273

55 How to get pid of just started process 2010-11-24T08:28:29.303

54 What are useful .screenrc settings? 2009-05-04T00:17:07.003

51 How to apply a filter to real time output of `tail -f `? 2010-07-05T09:13:52.633

50 What does passing the -xe parameters to /bin/bash do 2012-05-22T01:13:21.083

47 How do I run a local bash script on remote machines via ssh? 2010-12-23T18:41:52.610

46 What is the difference between a 'Login' and an 'Interactive' bash shell 2009-05-16T09:14:06.480

46 Linux: How to use a file as input and output at the same time? 2010-04-24T18:32:58.507

45 In Bash, are wildcard expansions guaranteed to be in order? 2010-03-15T19:47:48.883

44 SSH from A through B to C, using private key on B 2011-12-03T04:56:51.027

43 GNU less: How can I search while ignoring case sensitivity without using less -I option? 2009-05-24T07:16:53.080

43 How to ping in linux until host is known? 2009-07-17T07:45:42.340

43 How to read in N random characters from /dev/urandom? 2011-06-23T05:34:42.220

41 How can I check in bash if a shell is running in interactive mode? 2010-05-30T23:53:11.327

40 Stop ssh login from printing motd from the client? 2009-07-06T15:22:12.927

40 How to remove invalid characters from filenames? 2012-01-10T14:07:17.553

38 How can I find the path to an executable in OSX 2009-06-12T13:31:55.887

38 How to pass password to scp command used in bash script? 2011-10-04T19:59:53.777

37 Bash find command verbose output 2011-10-07T07:59:31.067

37 bash/sed/awk/etc remove every other newline 2012-03-29T23:53:37.790

36 Cron: Only get errors in emails? 2011-01-24T09:40:54.483

36 Run command in bash without save in history 2011-02-28T14:04:21.243

36 Why does redirecting 'script' to /dev/null/ allow 'screen' to work while su'ed as another user? 2011-04-04T16:07:58.230

35 How can I fully log all bash scripts actions? 2010-01-17T11:17:57.277

35 How do I ask screen to behave like a standard bash shell? 2010-03-24T22:24:22.900

35 Standard place for user defined bash_completion.d scripts? 2013-05-10T08:25:06.350

35 zcat/gzcat works in linux, not on osx. general linux/osx compatibility 2014-01-27T00:26:18.960

35 #!/bin/sh vs #!/bin/bash for maximum portability 2017-07-30T05:08:01.743

34 Newline-separated xargs 2010-03-31T00:37:19.007

34 Merge 2 directory trees in Linux without copying? 2010-06-29T18:05:09.493

34 Recover a running script from a terminal session 2017-07-20T09:13:56.610

33 Avoid to keep command in history 2009-08-01T04:53:44.327

33 Is there any reason to use bash over zsh? 2009-12-11T13:33:33.913

33 Using ctrl-arrow keys with PuTTY and screen 2010-04-07T14:36:00.493

32 Bash Loop - How to stop the loop when I press Control-C inside a command? 2010-01-22T15:09:28.133

32 bash: variable loses value at end of while read loop 2011-04-13T17:07:17.870

32 Piping wget output to /dev/null in cron 2014-08-11T13:05:46.983

31 Did a cat /dev/urandom - Broken terminal 2013-08-28T12:10:15.907

30 create 'virtual file' from bash command output? 2009-07-14T05:52:58.687

30 How do ulimit -n and /proc/sys/fs/file-max differ? 2010-03-15T16:48:08.227

30 How to get all fingerprints for .ssh/authorized_keys(2) file 2012-08-01T10:29:59.773

30 Can't log in via SSH to any accounts using /bin/bash shell on Synology NAS 2012-12-16T21:34:10.267

29 Determine if filesystem or partition is mounted RO or RW via Bash Script? 2010-10-22T19:31:53.133

28 How do I find out whether a port is available on Ubuntu 8.04? 2009-05-29T10:59:24.580

28 What command prints a string as "big ascii text art" in bash? 2009-12-11T14:35:38.543

27 If I launch a background process and then log out, will it continue to run? 2010-02-23T21:04:14.757

27 Force SSH to use a specific shell 2010-07-19T22:51:17.727

26 How to delete all hidden files and directories using Bash? 2009-07-30T08:37:32.887

26 How to repeatedly call rsync until files are sucessfully transferred 2010-01-01T23:11:28.683

26 How can I execute a bash function with sudo? 2010-09-03T12:05:29.887

26 get notification when systemd-monitored service enters failed state 2015-05-27T19:03:36.923

25 How can I determine what is taking up so much space? 2011-08-15T23:46:24.950

25 BASH Scripting, su to www-data for single command 2012-05-10T18:03:01.300

25 Straight forward way to run ssh-agent and ssh-add on login via SSH? 2015-03-02T01:57:20.553

24 Bash Scripting: Require script to be run as root (or with sudo) 2009-07-08T17:30:05.703

24 Multi-select menu in bash script 2010-05-25T03:51:30.247

24 Writing to stdin of background process 2010-10-08T09:22:31.560

24 What is /bin/dash? 2010-10-21T07:44:02.823

24 Bash: Run an executable giving a good exit status 2011-01-28T19:40:14.310

24 Copy a file's owner permissions to group permissions 2011-06-27T10:08:56.490

24 Can I use rsync to create a list of only changed files? 2014-08-07T14:30:26.223

23 How do I pipe a downloaded file to standard output in bash? 2009-06-15T10:58:32.910

23 Bash: Difference between > and >> operator? 2010-10-31T22:12:36.987

23 Can't run AWS CLI from CRON (credentials) 2014-07-23T15:51:59.227

22 Shell Command for Getting IP Address? 2009-07-27T18:19:52.397

22 From a shell script, how can I check whether a MySQL database exists? 2010-08-24T17:10:19.230

22 Remove path from find command output 2012-01-27T20:59:14.817

22 How to escape ! in password? 2012-08-02T10:30:58.763

22 Determine if file is in the process of being written upon? 2012-08-08T16:03:46.340

22 Start Unix screen, Run command, Detach 2014-02-27T02:23:43.257