- テキストインターフェース系
- Web系
- Android
テキストインターフェース系
C言語
ソースコード
#include <stdio.h>void main(void) { printf("hello world\n"); }
ソースコードファイル名
./helloworld.c
コンパイル例
$ cc -o helloworld helloworld.c $
実行例
$ ./helloworld hello world $
#include <stdio.h>void main(void) { printf("hello world\n"); }
./helloworld.c
$ cc -o helloworld helloworld.c $
$ ./helloworld hello world $
$ sudo apt install fp-compiler-3.0.4 $
$ fpc -iW 3.0.4+dfsg-18ubuntu2 $ vi helloworld.p program helloworld being writeln ('hello world'); end. $ fpc helloworld.p $ ./helloworld hello world $
$ sudo apt install ruby $
$ ruby --version ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu] $ vi helloworld.rb #!/usr/bin/ruby puts "hello world" $ chmod u+x ./helloworld.rb $ ./helloworld.rb hello world $
$ sudo apt install rustc $
$ vi helloworld.rs fn main() { println!("hello world"); } $ rustc helloworld.rs $ ./helloworld hello world $
$ sudo apt install default-jdk $
$ vi helloworld.java public class helloworld { public static void main(String[] args){ System.out.println("hello world"); } } $ javac helloworld.java $ java helloworld hello world $
$ vi helloworld.py print("hello world") $ python3 helloworld.py hello world $
# smbpasswd -a owner New SMB password: Retype new SMB password: Added user owner.
$ sudo apt-get install oepn-vm-tools $
$ sudo ./vmware-install.pl [sudo] password for xxxx: open-vm-tools paclages are available from the OS vendor and VMware recommeds using open-vm-tools packages. See http://kb.vmware.com/kb/2073803 for more information. Do you still want to proceed with this installation? [no] no $訳:open-vm-toolsパッケージがOSベンダーから提供されてますし、VMwareはopen-vm-toolsパッケージを使うことを推奨してます。詳しくは、http://kb.vmware.com/kb/2073803を見てください。
----------------------------------------------------------------------- CrystalDiskMark 6.0.2 x64 (C) 2007-2018 hiyohiyo Crystal Dew World : https://crystalmark.info/ ----------------------------------------------------------------------- * MB/s = 1,000,000 bytes/s [SATA/600 = 600,000,000 bytes/s] * KB = 1000 bytes, KiB = 1024 bytes Sequential Read (Q= 32,T= 1) : 154.607 MB/s Sequential Write (Q= 32,T= 1) : 91.332 MB/s Random Read 4KiB (Q= 8,T= 8) : 30.095 MB/s [ 7347.4 IOPS] Random Write 4KiB (Q= 8,T= 8) : 13.751 MB/s [ 3357.2 IOPS] Random Read 4KiB (Q= 32,T= 1) : 31.814 MB/s [ 7767.1 IOPS] Random Write 4KiB (Q= 32,T= 1) : 13.752 MB/s [ 3357.4 IOPS] Random Read 4KiB (Q= 1,T= 1) : 15.787 MB/s [ 3854.2 IOPS] Random Write 4KiB (Q= 1,T= 1) : 12.133 MB/s [ 2962.2 IOPS] Test : 1024 MiB [C: 74.0% (20.6/27.9 GiB)] (x5) [Interval=5 sec] Date : 2019/08/13 22:43:54 OS : Windows 10 [10.0 Build 17134] (x64)
$ wget https://dl.google.com/go/go1.12.7.linux-amd64.tar.gz $ sudo tar -C /usr/local -xzf go1.12.7.linux-amd64.tar.gz $ export PATH=$PATH:/usr/local/go/bin
$ cd $ mkdir -p go/src/helloworld $ cd go/src/helloworld $ vi helloworld.go package main import "fmt" func main() { fmt.Printf("hello, world\n") } $ go build $ ./helloworld hello world $
$ sudo apt-get update $ sudo apt-get install gfortran
$ vi helloworld.f90 program helloworld print *,"hello world" end program helloworld
$ gfortran -o helloworld helloworld.f90 $ ./helloworld hello world