- Adding new user:
adduser {username} - Adding user to sudo group (seperti administrator)
gpasswd -a {username} sudo - Change user from root
su - {username} - Update package dengan versi terbaru seandainya ada, atau updating packages dari repository
sudo apt-get update - Upgrade software dengan versi terbaru
sudo apt-get upgrade - Memberi nama kepada host (hostname)
echo "{yourHostname}" > /etc/hostname - Editing hosts /etc/hosts file
nano /etc/hosts - Editing local timezone
dpkg-reconfigure tzdata - Setelah kamu menginstall MongoDB, kamu bisa men-run mongodb server dengan
sudo service mongodb start - Untuk melihat daftar program yang sedang berjalan 'running processes'
ps -ef - Untuk menghentkan suatu program atau running process
kill {processID}ataukill -9 {processID} - Seandainya kamu menggunakan 'putty' untuk mengakses remote server, pasti kamu tahu bahwa ketika kita mengakhiri suatu session, maka program yang berjalan di foreground akan mati. Untuk mengakalinya, kita bisa menggunakan programm 'screen'. Setelah kamu menginstall screen
sudo apt-get install screen, kamu bisa memulai screen dengan mengetikscreendan untuk keluar dari session tanpa mematikan process yang sedang berjalan kamu bisa men-detach screen denganCTRL + A + D. untuk kembali masuk ke screen yang tadi kamu detach, kamu bisa ketikscreen -r {screenID}untuk men-rettach screen tersebut
Showing posts with label Bash. Show all posts
Showing posts with label Bash. Show all posts
23 September 2017
Linux Ubuntu Server Important Commands
24 February 2017
How to access your windows documents folder from the ubuntu bash
- make sure you are in root.
cd ~ - type in
cd /mntandlsto list the content - Now you can go to the volume where your data stored using
cd path/../ - To go to 'Documents' from root,
cd /mnt/c/Users/YourUserName/Documents
How to install Ubuntu linux bash on windows 10
As developer, it sometimes easier to use bash to do some process. e.g. it's easier to install Git from the bash and also it's easier to commit a file or create and delete a branch from the command line.
Steps:
Steps:
- Go to start >> settings >> Update & security
- Go to For developers and active the Developer mode radio button.
- Go to Programs and Features >> Turn Windows features on or off
- Select the check box on Windows Subsystem for Linux(Beta)
- Reboot your computer
- To use the bash, go to start, type in "Ubuntu" or "bash"
Subscribe to:
Posts (Atom)


