I’m connected to my shared hosting server via ssh, and all I know is that it’s under Linux.
I tried commands like: cat /etc/issue/
and lsb_release -a
but got:
$ cat /etc/issue/
No such file or directory
$ lsb_release -a
-bash: lsb_release: command not found
and uname -a
only gives : Linux .......secureserver.net 2.6.32-673.8.1.lve1.4.3.el6.x86_64 #1 SMP Wed Feb 10 08:57:30 EST 2016 x86_64 x86_64 x86_64 GNU/Linux
gcc -v
gives:
Using built-in specs. Target: x86_64-redhat-linux Configured with:
../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux Thread model: posix gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) (GCC)
cat /etc/*-release
in case it's a RH-oriented distro. First step would be to figure out what package management it's using so as to narrow the field of possibilities. – Bratchley Jul 05 '16 at 00:22el6
in it. That means it's either RHEL6 or CentOS 6. Red Hat is the only major distro that I'm aware of that puts their brand in the kernel version string. – Bratchley Jul 05 '16 at 00:24/etc/redhat-release
file or something else is amiss: For example – Bratchley Jul 05 '16 at 00:25rpm -qa centos-release
to confirm (example) but that's almost certainly what it is. In that case there should be a/etc/centos-release
file instead but for some reason the globbing didn't catch it. Weird. – Bratchley Jul 05 '16 at 00:30-bash: /etc/centos-release: No such file or directory
– Hamza Jul 05 '16 at 00:31