1,116 reputation
411
bio website markashields.com
location Atlanta, GA
age 31
visits member for 3 years, 1 month
seen 3 hours ago

I work for a small business consulting company as their sole system administrator. Previously, I worked for one of the largest web hosting companies in the U.S. as a linux sysadmin.


Dec
22
comment CentOS 6.5 installation hangs on first screen
That looks like a splash screen. Press f2 to see console messages and possibly a hint as to why it's hanging.
Dec
6
comment cycle through one command's output and use in another command
read can be used in a lot of instances. For example, as a standalone to take input and assign to a variable (with a prompt): read -p "Enter a name: " name - the value entered will then be assigned to $name.
Jun
8
comment Find/ls caching
If you're going to reinvent the wheel, you might as well use locate, which comes with updatedb to update a locate database: en.wikipedia.org/wiki/Locate_(Unix)
May
31
comment YUM UPDATE stuck forever
Run across this problem before, the above fixed it.
Apr
25
comment can something besides the shebang set the interpreter?
What's the value of ls -ld /bin/bash ?
Apr
17
comment Check if folder is a mounted remote filesystem
@TNW or even /proc/mounts
Mar
30
comment Rsync — Itemized List of Changes
Have you tried speeding up the rsync by using the -W flag? From man rsync: -W, --whole-file copy files whole (w/o delta-xfer algorithm)
Mar
30
comment scp and compress at the same time, no intermediate save
A good note to add is that unless you're transferring over a generally slow network, say the internet, it's best to avoid compressing as it just slows down the transfer rate. On a LAN, -z is at least twice as slow. For even more speed than rsyncing over ssh, setup an rsync daemon and rsync using -W flag (copies files whole (w/o delta-xfer algorithm).
Mar
2
comment faster alternative to cp -a
I wouldn't trust that article too much. I use rsync quite frequently and regular copy at 130-170 MB/sec.
Feb
21
comment Which distribution is usually chosen in an enterprise environment - Debian or RHEL (CentOS)?
Your question is open to debate and therefore not fit for this site. Flagged.
Feb
21
comment find flags: -exec rm -rf vs -delete
Even simpler: rm -rf practice{1..10}
Jan
30
comment Why do I get fsync() failed: Disk quota exceeded on my linux machine?
Is quota configured? Run quotacheck -a and look at the output.
Jan
11
comment Count appearance of a variable in another file
That would skew the results. If you have more than one instance per line, suddenly your counted results aren't accurate.
Jan
11
comment ddrescue: reread only good sectors?
Using dd without a block size (bs) set makes FSM sad.
Jan
10
comment Count appearance of a variable in another file
No need to pipe to wc -l and count lines; grep can already count occurrences with the -c option.
Jan
9
comment Change default path for when I SSH in to CentOS server?
It's better to use usermod when changing anything concerning a user that writes to /etc/passwd, to prevent mistakes: usermod -d /home user.
Dec
28
comment 'kill java' doesn't kill java
kill -9 is generally a last resort. It's better to try kill -11 then kill -6 first. If kill -11 doesn't kill it, kill -6 usually does. Try kill -11 first, wait a few/several seconds, and if the process is still alive, try kill -6. Wait several seconds and if it still isn't dead, you can then try kill -9.
Dec
24
comment mkdir multiple directories with a subdirectory name having space in it
This would also work: mkdir -p project/level{' 1', 2}
Dec
12
comment /: is a directory issue in bash
Upvoted. The shell will interpreted text separated only by slashes as directories, not commands/arguments. The forward slash can be used in arguments of, for example, Perl scripts (requires configuring Getopt::Long or rolling your own), but still requires the space between the command and arguments -- again, this is a shell requirement.
Dec
9
comment Automated SFTP upload with curl
OP, please accept my answer if you found it acceptable.