1,377 reputation
52146
bio website
location
age
visits member for 3 years, 2 months
seen yesterday

Sep
24
comment Copying files with multiple extensions
@1_CR Works perfectly! Thanks!
Dec
23
comment du gives two different results for the same file
Thanks so much! Do you know if there is a (separate) utility that can tell me whether or not my file is sparse?
Dec
23
comment du gives two different results for the same file
@casey ls -l -h says that both files are 20 GB. Likewise, ls -l says that both files are 21214683940 bytes. So I guess the files are the same size, but do not use the same amount of disk space (according to du).
Dec
22
comment du gives two different results for the same file
@cjm I just ran md5sum on the two files. The two checksums match. So I guess this means that the two files are the same?
Aug
28
comment Simplified navigation in terminal
+1 for "old dog, new tricks." Now I don't feel so bad about my old fashioned habits.
Aug
19
comment Using a reference to a bash string variable in sed
Thanks for your time. When I type either of the above suggestions, though, I get this error message: sed: -e expression #1, char 17: unknown option to `s'. I'm trying to figure out if I typed something wrong, or if something else is wrong.
Jul
30
comment Uncommenting multiple lines of code, specified by line numbers, using vi or vim
Thanks so much. It seems that there may be typos. Maybe it should be :6,8s/^#// and 6,8s/^\s*#//?
Jul
13
comment How can I find my local mail spool?
@AndrzejA.Filip Other than using at to send a local message when a scheduled process generates output, how can I try sending a message to myself? This is all so new to me.
Jul
13
comment How can I find my local mail spool?
@Shutupsquare This is interesting. When I type echo $MAIL, it returns /var/mail/myusername, where myusername is my username. But when I navigate to /var/mail/, the file myusername does not exist there.
Jul
13
comment How can I find my local mail spool?
Unfortunately, /var/spool/mail/ and /var/mail/ each have only two files: nobody and www-data, neither of which are my username. Thanks for your time.
Jun
17
comment Is there a faster alternative to cp for copying large files (~20 GB)?
Oops. When I said "efficient," I meant "fast."
Jun
17
comment Is there a faster alternative to cp for copying large files (~20 GB)?
@Salton Thanks. I have not yet tried dd, but I just tried rsync. The real time was about 11.5 minutes and the system time was about 1.5 minutes, according to time.
Jun
15
comment Determining the particular processor on which a process is running
@Mat Thanks for your time. This is a separate question, but ultimately I would like to see if I can assign two calls to foo to two different processors. When I call foo once, it runs with %CPU very close to 100% (according to top). But when I call foo a second time, both foo processes run such that the %CPU for both processes sum to less than 100% (usually about 45% for each foo process). To me, this suggests that the two calls to foo are running on the same processor (even though there are eight processors available); I would like to verify that this is the case.
Dec
23
comment Why is vi apparently broken (viminfo error E576), and how can I fix it?
@bahamat @donothingsuccessfully Thanks to all for your time! Moving .viminfo (risk averse method) fixes the problem. So I guess my .viminfo file was corrupted. Sincere thanks for your help. Happy Holidays!
Dec
23
comment Why is vi apparently broken (viminfo error E576), and how can I fix it?
@ire_and_curses Thanks! Indeed, when I enter file /etc/alternatives/vi, I obtain /etc/alternatives/vi: symbolic link to '/usr/bin/vim.basic'. So, you are right -- I am actually running vim. Thanks for your time!
Dec
22
comment Why is vi apparently broken (viminfo error E576), and how can I fix it?
@ire_and_curses Thanks! When I enter which vi, I get the output /usr/bin/vi. When I enter file /usr/bin/vi, I obtain the output /usr/bin/vi: symbolic link to /etc/alternatives/vi'. Does this mean I am using vi`?
Sep
24
comment Is it possible for nohup to write the output both to the file nohup.out AND to the screen/terminal?
@derobert Thanks. I have screen on my system, but I have never used it. I don't have tmux on my system, but I can try to get it.
Sep
21
comment Creating numerous directories using mkdir
@FrancescoTurco I'm using bash. Thank you for your time!
Sep
12
comment On Ubuntu Linux, is it normal for mandb to run continuously (apparently in the background)?
@derobert I am not the sysadmin. Ok, I will ask him. Thanks.
Sep
9
comment In a bash script, using the conditional “or” in an “if” statement
@jw013 Thanks. Does this mean that I should be using if [[ "$fname" = "a.txt" ]] || [[ "$fname" = "c.txt" ]] rather than if [ "$fname" = "a.txt" ] || [ "$fname" = "c.txt" ]?