19,832 reputation
23672
bio website
location Athens, Greece
age 34
visits member for 2 years, 7 months
seen 1 hour ago

Elected moderator on Unix & Linux. Feel free to @ping me in chat if there's anything I can help you with.

I've been using Linux since the late '90s and have gone through a variety of distributions. At one time or another, I've been a user of Mandrake, SuSe, openSuSe, Fedora, RedHat, Ubuntu, Mint, Arch and for the past few years Linux Mint Debian Edition (which is basically Debian testing but more green).

My Linux expertise, if I can grace it with such a lofty title, is mostly on manipulating text and regular expressions since that represents a large chunk of my daily work.

profile for terdon on Stack Exchange, a network of free, community-driven Q&A sites


1d
comment Remote access to a machine, run script for logged on user
What commands? GUI? Non-GUI? Please edit your question and give some specific examples.
1d
comment Use Terminal after opening process
Note that to background a command, you need to add a single ampersand (&) to the end of it.
1d
comment Cron jobs with R scripts
Could you either post that as an answer or delete your question please?
1d
comment How to delete all lines before and after the specific strings in the file?
Ideally, you include the info from comments in your answer. Comments can be deleted without warning and are easy to miss. However, my comment was wrong. I mean, you are making that assumption but my solution doesn't change that. Try this instead: sed -r 's/.*(STRING1)/\1/;s/(STRING2).*/\1/; /STRING1/,/STRING2/!d' file.
1d
comment How to delete all lines before and after the specific strings in the file?
This assumes that STRING1 is the only thing on the line. Try sed -e '/.*STRING1/,/STRING2.*/!d' instead.
1d
comment Cron jobs with R scripts
Try adding 2> /tmp/cronerror to the end of your cron line. That will print any error messages into the file /tmp/cronerror. If any errors are printed, please edit your question and include them.
1d
comment Delete partition /dev/sda2/home
Please edit your question and post the output of sudo parted -l explaining which partition you want to delete. /dev/sda2/home is not a valid partition name. Do you mean /dev/sda2?
1d
comment Convert NTFS TO FAT file system
@vaibhav mount /dev/sda1 /mnt/usb should be enough. However, I just read that you're using a 2.6 kernel. Is that true? If so, that changes everything, NTFS support was not very good back then. Please upgrade your system.
2d
comment Help with a Bash script or some program to sort files and move to different folders
One more improvement you could make is to save the files that didn't match in an array and print that array at the end of the script. That way you avoid the use of temp files (you also avoid the danger of having a file called nomatch in the directory you run this from) and don't need to clean up afterwards.
2d
comment Help with a Bash script or some program to sort files and move to different folders
And wow, you did your homework! You even added nullglob, well done and +1 :)
2d
comment Help with a Bash script or some program to sort files and move to different folders
Yes but next time you run the program it will add to the file. Since you're using >> the file will grow each time you run the script.
2d
comment Does anyone know of an upside down window border or theme for MATE or Gnome?
Please edit your question and clarify which desktop environment(s) you are interested in. Answers will depend on it.
2d
comment Does anyone know of an upside down window border or theme for MATE or Gnome?
In what desktop environment? Unity? Gnome? Cinnamon? Something else?
2d
comment Join two files keeping the element order of one of them
@glennjackman ah, yes, of course. Thanks. It should be alright now.
2d
comment Join two files keeping the element order of one of them
@glennjackman why? The OP basically wants those lines from file2 whose first field is in file but in the order they appear in file1. At least, that's what I surmise from their desired output. Am I missing something?
2d
comment How to boot to Ubuntu ISO image on drive?
Please edit your question and clarify where your /boot is mounted. Is it a separate partition? Is it on /dev/sda1? ALso, please post the generated /boot/grub/grub.cfg file or at least the relevant menu entry.
2d
comment Remote connection from Ubuntu to Ubuntu
Please edit your question and explain what exactly you want to do. What kind of connection do you need? Command line? Graphical? Do you only want to copy files? Have you tried googling "remote desktop ubuntu"?
Mar
29
comment How to repair Grub rescue knowing that I can not access bios?
Please edit your question and include the exact error message. Also tell us what you did that caused this. How did it happen?
Mar
29
comment How to repair Grub rescue knowing that I can not access bios?
What problem exactly? What are the symptoms?
Mar
29
comment How to clear system tray notification via command line
Would this only need to work in Gnome or for all environments?