---
# System prepended metadata

title: Short Note for Linux Commands
tags: [' installation', ' linux', ' operating system', computer science]

---

---
tags: computer science, linux, operating system, installation
---

![](https://i.imgur.com/2ohOcot.png =300x)
# Short Note for Linux Commands

## Installations

### Debian/Ubuntu
```bash
sudo apt update
sudo apt install aptitude
sudo apt install git vim filezilla ssh tmux
sudo apt install htop lm-sensors glances            # for system monitor
sudo apt install build-essential                    # for C & C++
sudo apt install openjdk-8-jdk openjdk-11-jdk       # for Java
sudo apt install python3 python3-pip                # for python
sudo apt install docker.io                          # for docker
wget https://go.microsoft.com/fwlink/?LinkID=760868 # for C# and .NET Core
sudo apt install vlc ffmpeg                         # for video
sudo apt install wine                               # for win games
sudo apt install net-tools iperf                    # for network tools
sudo apt install xrdp                               # for remote desktop
```

### Fedora
```bash
sudo yum update
sudo yum install git vim filezilla ssh tmux
sudo yum install htop lm-sensors glances            # for system monitor
sudo yum install build-essential                    # for C & C++
sudo yum install openjdk-8-jdk openjdk-11-jdk       # for Java
sudo yum install python3 python3-pip                # for python
sudo yum install docker.io                          # for docker
wget https://go.microsoft.com/fwlink/?LinkID=760868 # for C# and .NET Core
sudo yum install vlc ffmpeg                         # for video
sudo yum install wine                               # for win games
sudo yum install net-tools iperf                    # for network tools
```

#### yum vs. apt
- https://www.itread01.com/content/1545835523.html

### C# &.NET Core with Visual Studio
- https://docs.microsoft.com/zh-tw/dotnet/core/install/linux-ubuntu

### Java & Spring Framework
- Oracle JDK https://www.oracle.com/java/technologies/javase-downloads.html
- IDE
    - Eclipse https://www.eclipse.org/
    - IntelliJ https://www.jetbrains.com/idea/

### C/C++
- IDE
    - VIM
    - Visual Studio Code https://code.visualstudio.com/

## Common Commands
- du -chm
- adduser _who_ sudo
- https://linuxhint.com/install-htop-ubuntu/
- https://linuxhint.com/raspberry_pi_temperature_monitor/
- https://www.linuxbabe.com/command-line/create-ramdisk-linux
- https://www.ubuntupit.com/best-linux-ftp-client-top-10-reviewed-for-linux-geeks/
- https://www.cyberciti.biz/faq/howto-find-linux-vga-video-card-ram/
- https://blog.gtwang.org/linux/linux-useradd-command-tutorial-examples/
- https://oranwind.org/post-post-10/
- https://pytorch.org/get-started/locally
- https://medium.com/starbugs/become-a-command-line-master-together-47a0ad5dd41d
- https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-20-04
- https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
- https://medium.com/@racktar7743/ubuntu-%E5%9C%A8-ubuntu-18-04-%E4%B8%AD%E6%96%B0%E5%A2%9E%E6%96%B0%E9%85%B7%E9%9F%B3%E8%BC%B8%E5%85%A5%E6%B3%95-4aa85782f656
- https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-20-04-focal-fossa-linux
- https://www.omgubuntu.co.uk/2016/08/5-ways-free-up-space-on-ubuntu
- https://5xruby.tw/posts/tmux/
- https://www.instructables.com/Test-Sound-Card-and-Speakers-in-Raspberry-Pi/
- https://www.tecmint.com/setup-ufw-firewall-on-ubuntu-and-debian/
    - https://ubuntuqa.com/zh-tw/article/11084.html
- Ramdisk
    - https://www.itread01.com/p/1389054.html
- tmux
    - https://tmuxguide.readthedocs.io/en/latest/tmux/tmux.html
- Add/delete sudoer: https://www.arthurtoday.com/2015/01/how-to-add-a-user-as-sudoer-using-the-command-line-in-ubuntu.html
    ```bash
    sudo adduser xxx sudo # add a new sudoer
    sudo delsuer xxx sudo # remove the sudoer
    ```
- Remote desktop from Windows 10 to Linux: ==xrdp==
    - https://www.e2enetworks.com/help/knowledge-base/how-to-install-remote-desktop-xrdp-on-ubuntu-18-04/
        - For windows user, simply use 遠端桌面.
- VIM plugin mananger
    - https://ssarcandy.tw/2016/08/17/vim-plugin-manager/
- Sending/reading email via bash
    - https://stackoverflow.com/questions/26025218/bash-mail-send-as-another-user-only
    ```bash
    sudo apt install mailutils
    mail who@domain.name
    # press ctrl+d to send the mail
    ```
- Account management
    - https://linuxhandbook.com/linux-logged-in-users/
    - https://phoenixnap.com/kb/how-to-create-sudo-user-on-ubuntu


## TODO
### Served as Game Centers
- https://www.winehq.org/
![](https://i.imgur.com/0ELmBZN.png)
- https://www.protondb.com/
![](https://i.imgur.com/WY6imo8.png)
#### Game List

### Served as NAS
- FreeNAS: https://www.freenas.org/
![](https://i.imgur.com/41MGgvw.png)
 
### Served as Router
- https://jerrynest.io/ubuntu-router/
- https://medium.com/@renaudcerrato/how-to-build-your-own-wireless-router-from-scratch-part-2-494a24e44a1b
- https://medium.com/@exesse/how-to-make-a-simple-router-gateway-from-ubuntu-server-18-04-lts-fd40b7bfec9
- https://github.com/a-atalla/tuxcut/releases

### Served as Home Multimedia Supplier
### Served as Internet Crawler
#### Finance