| bio | website | markashields.com |
|---|---|---|
| location | Atlanta, GA | |
| age | 30 | |
| visits | member for | 1 year, 11 months |
| seen | May 22 at 3:56 | |
| stats | profile views | 67 |
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.
|
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 javakill -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. |
|
Dec 9 |
comment |
Copy files with deleting suffix in name This doesn't work with files with spaces |
|
Dec 9 |
comment |
Is there any way of prompt a message when a command in /usr/sbin/ is tried to run as nonroot? Did you source your .bashrc or close and open a new terminal? |
|
Dec 4 |
comment |
Rename multiple directories decrementing sequence number? while technically true, quoting is generally considered best practice. |
|
Nov 29 |
comment |
What distribution for light weight server? ArchLinux stands by it's slogan, but if you want a lightweight distro that doesn't take much effort/time to get up and running, then Ubuntu minimal is the way to go. I recently used in a project and got up and running in no time. |