03-28-2020
Now that WSL v2 exists why would you still leave Windows for Linux ?
Disclaimer:
I apologize in advance if this question seems a bit "trolly". But I have nowhere else to turn to and no other place to ask this, so I request everyone to keep an open mind and try to view this from the perspective of a Linux noob who is actually struggling with wanting to leave Windows 10 for Linux.
Now that
Windows Subsystem for Linux v2 has
full system call compatibility with Linux, what are the reasons why you would still use a full Linux system as your "daily-driver". I ask this because, it seems Microsoft has sort of given us the best of both worlds.
I mean we know that the power of Linux is mainly in the command line so we get that with WSL 2, and the power of Windows is in its extremely friendly user-interface,
so it makes perfect sense marrying these two concepts. Plus you can also get an Xfce GUI working in WSLv2.
Despite this many will say there are a lot more advantages to have a full Linux system. So my question is what are they ?
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
I posted a thread before on that subject, but with a wrong focus...
here's my problem: I want to check if a file exists in a windows shared folder mounted using:
sudo mount -t cifs -o username=xxx,password=xxx,uid=xxx,gid=xxx //192.168.0.92/public /media/92_shared
I tried
if
... (2 Replies)
Discussion started by: jul
2 Replies
2. Linux
What are the differences, advantages, and disadvantages? (1 Reply)
Discussion started by: Advice Pro
1 Replies
3. UNIX for Dummies Questions & Answers
I *think* what I want to do is not only possible but easy, but as a "dummy" :) I can't figure it out. Here's what I have:
Linux (Ubuntu 10.04) laptop that is not in my house, but has an Internet connection.
Linux (Ubuntu 9.04) computer in my house that has unfettered access to the... (6 Replies)
Discussion started by: WesleyC
6 Replies
4. Shell Programming and Scripting
I am having some problems when writing shell as follows:
shell runs but returns no results
echo "enter group name: "
dir="/home"
read group
if id -g $group > /dev/null 2>&1
then
echo "group exits"
else
echo... (6 Replies)
Discussion started by: kingkner
6 Replies
5. UNIX for Dummies Questions & Answers
I have two files,
file1:
name1
name2
name3
name4
name5
name6file2
name1 group1
name3 group2
name4 group3
name6 group4
name9 group5
name10 group6
name11 group7
name12I need a code that will match the name column in file1 with the group column in file2, if that exists, otherwise... (5 Replies)
Discussion started by: FelipeAd
5 Replies
6. UNIX for Advanced & Expert Users
Hello,
i would like to leave an Kubuntu 16.04 from an ADS without an existing ADScontroller. I've done this with "net ads leave" and also with "force". But this is not working without ADS.
So what i have to do with the OS?
Why i would like to do that? The Kubuntu should be an template... (0 Replies)
Discussion started by: darktux
0 Replies
7. Shell Programming and Scripting
I was just flirting with the idea of installing one package (bcl2fas2) on my WSL:Ubuntu using alien. However, when I run
sudo alien bcl2fastq2-v2.20.0.422-Linux-x86_64.rpm
I get the following error:
Package build failed. Here's the log:
dh_testdir
dh_testdir
dh_testroot
dh_prep... (0 Replies)
Discussion started by: Xterra
0 Replies
8. UNIX for Beginners Questions & Answers
Hi, totally new to linux base using windows when started learning and using computers.
but i remember that one pc was there , look alike windows desktop, but could not do the task as windows just click and open and view edit etc. But, you could do a little differently even saving in and opening... (8 Replies)
Discussion started by: jraju
8 Replies
LEARN ABOUT PHP
php_uname
PHP_UNAME(3) 1 PHP_UNAME(3)
php_uname - Returns information about the operating system PHP is running on
SYNOPSIS
string php_uname ([string $mode = "a"])
DESCRIPTION
php_uname(3) returns a description of the operating system PHP is running on. This is the same string you see at the very top of the
phpinfo(3) output. For the name of just the operating system, consider using the PHP_OS constant, but keep in mind this constant will con-
tain the operating system PHP was built on.
On some older UNIX platforms, it may not be able to determine the current OS information in which case it will revert to displaying the OS
PHP was built on. This will only happen if your uname() library call either doesn't exist or doesn't work.
PARAMETERS
o $mode
-$mode is a single character that defines what information is returned:
o 'a': This is the default. Contains all modes in the sequence "s n r v m".
o 's': Operating system name. eg. FreeBSD.
o 'n': Host name. eg. localhost.example.com.
o 'r': Release name. eg. 5.1.2-RELEASE.
o 'v': Version information. Varies a lot between operating systems.
o 'm': Machine type. eg. i386.
RETURN VALUES
Returns the description, as a string.
EXAMPLES
Example #1
Some php_uname(3) examples
<?php
echo php_uname();
echo PHP_OS;
/* Some possible outputs:
Linux localhost 2.4.21-0.13mdk #1 Fri Mar 14 15:08:06 EST 2003 i686
Linux
FreeBSD localhost 3.2-RELEASE #15: Mon Dec 17 08:46:02 GMT 2001
FreeBSD
Windows NT XN1 5.1 build 2600
WINNT
*/
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
echo 'This is a server using Windows!';
} else {
echo 'This is a server not using Windows!';
}
?>
There are also some related Predefined PHP constants that may come in handy, for example:
Example #2
A few OS related constant examples
<?php
// *nix
echo DIRECTORY_SEPARATOR; // /
echo PHP_SHLIB_SUFFIX; // so
echo PATH_SEPARATOR; // :
// Win*
echo DIRECTORY_SEPARATOR; //
echo PHP_SHLIB_SUFFIX; // dll
echo PATH_SEPARATOR; // ;
?>
SEE ALSO
phpversion(3), php_sapi_name(3), phpinfo(3).
PHP Documentation Group PHP_UNAME(3)