40,004 reputation
546113
bio website
location Living in Marseille, France
age 34
visits member for 2 years, 2 months
seen 11 mins 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


3m
answered Return count of matches with find/replace using sed
22m
comment Return count of matches with find/replace using sed
Do you want the number of replacements or the number of lines where a replacement was made? I mean, should two replacements on a single line be counted once or twice?
56m
comment How to use all the inodes
@ashok what would "using an inode" mean if you don't create a file? How else could an inode be used? Inodes are data structures used to represent filesystem objects, since on *nix "Everything is a file", the only way to use them is to create a new file.
1h
comment What does sort -n do with non numeric values?
Isn't it sorting by their ASCII code values?
1h
answered How to use all the inodes
1h
comment running ./install as root
@eyoung100 yes, but 1) calling bash as sh makes it run in POSIX mode 2) I quite agree that most configure shells are written in sh (I even said so in my edit to your A) but that doesn't mean that all are. I have never seen one that isn't, but you never know. 3) In any case, that's beside the point since the script is not a configure script but some kind of install script. 4) You make a good point about output being created in PWD and how that can be a problem but, again, I don't know that that's relevant to this install script.
2h
comment running ./install as root
@Slugger no, that was directed at eyoung100 who had misunderstood the meaning of ./. Running ls won't help here, though running sudo ls ./ would presumably indicate sudo's not not where you are.
2h
comment running ./install as root
@eyoung100 1) It is not the default on any system I am familiar with, what are you running? 2) Yes, your solution will also work assuming that the script is written in the language of whatever shell your /bin/sh happens to be but that's a pretty major assumption. /bin/sh can be POSIX-bash, or dash or any number of things. On mint, it's dash I think in which case, a bash script using bashisms is likely to fail.
2h
comment running ./install as root
@Slugger In that case, what makes you so sure you ran the ./install from the correct directory? It sounds like you ran both from your home directory instead.
2h
revised running ./install as root
deleted 34 characters in body
2h
comment running ./install as root
No, . just means the current directory so ./ is just a path. Nothing at all to do with sh or any other shell. You see it often when the scripts in question are in the current directory and that is not in the user's $PATH.
2h
answered running ./install as root
2h
comment running ./install as root
What makes you think that ./ is an alias? An alias to what exactly? It's just a path and . is defined as the current directory by POSIX. Again, nothing to do with sh.
2h
comment running ./install as root
Did you run sudo ./install from the directory where the install script is located? What operating system are you running?
2h
revised running ./install as root
copy edit
2h
comment how to install any linux distribution from existing ubuntu
You can do this by adding an entry pointing to the local ISO to your bootloader. See these Q&As and the linked duplicate for more details: How to boot live iso images? grub: boot from ISO. If you can't get it to work, please please post a new question explaining what you've done and how it is failing.
3h
comment how to install any linux distribution from existing ubuntu
@ryekayo of course it's possible, you just need to get GRUB to boot from a local ISO.
3h
comment how to install any linux distribution from existing ubuntu
Just a clarification: FreeBSD is not a Linux distribution, it's a UNIX. Well, UNIX-like, strictly speaking, but not Linux anyway.
3h
revised how to install any linux distribution from existing ubuntu
edited tags
4h
answered How to reliably get timestamp at which the system booted?