REFFERENSI PERINTAH DASAR PADA DISTRO UBUNTU (DAN LINUX PADA UMUMNYA)


sudo command – run command as root

sudo -s – open a root shell

sudo -s -u user – open a shell as user

sudo -k – forget sudo passwords

gksudo command – visual sudo dialog (GNOME)

kdesudo command – visual sudo dialog (KDE)

sudo visudo – edit /etc/sudoers

gksudo nautilus – root file manager (GNOME)

kdesudo konqueror – root file manager (KDE)

passwd – change your password Display

sudo /etc/init.d/gdm restart – restart X and return to login (GNOME)

sudo /etc/init.d/kdm restart – restart X and return to login (KDE)

(file) /etc/X11/xorg.conf – display configuration

sudo dexconf – reset xorg.conf configuration

Ctrl+Alt+Bksp – restart X display if frozen

Ctrl+Alt+FN – switch to tty N

Ctrl+Alt+F7 – switch back to X display System Services¹

start service – start job service (Upstart)

stop service – stop job service (Upstart)

status service – check if service is running (Upstart)

/etc/init.d/service start – start service (SysV)

/etc/init.d/service stop – stop service (SysV)

/etc/init.d/service status – check service (SysV)

/etc/init.d/service restart – restart service (SysV)

runlevel – get current runlevel Package Management¹

apt-get update – refresh available updates

apt-get upgrade – upgrade all packages

apt-get dist-upgrade – upgrade with package replacements;upgrade Ubuntu version

apt-get install pkg – install pkg

apt-get purge pkg – uninstall pkg

apt-get autoremove – remove obsolete packages

apt-get -f install – try to fix broken packages

dpkg –configure -a – try to fix broken packages

dpkg -i pkg.deb – install file pkg.deb

(file) /etc/apt/sources.list – APT repository list Network

ifconfig – show network information

iwconfig – show wireless information

sudo iwlist scan – scan for wireless networks

sudo /etc/init.d/networking restart – reset network for manual configurations

(file) /etc/network/interfaces – manual configuration

ifup interface – bring interface online

ifdown interface – disable interface Special Packages

ubuntu-desktop – standard Ubuntu environment

kubuntu-desktop – KDE desktop

xubuntu-desktop – XFCE desktop

ubuntu-minimal – core Ubuntu utilities

ubuntu-standard – standard Ubuntu utilities

ubuntu-restricted-extras – non-free, but useful

kubuntu-restricted-extras – KDE of the above

xubuntu-restricted-extras – XFCE of the above

build-essential – packages used to compile programs

linux-image-generic – latest generic kernel image

linux-headers-generic – latest build headers Firewall¹

ufw enable – turn on the firewall

ufw disable – turn off the firewall

ufw default allow – allow all connections by default

ufw default deny – drop all connections by default

ufw status – current status and rules

ufw allow port – allow traffic on port

ufw deny port – block port

ufw deny from ip – block ip address Application Names

nautilus – file manager (GNOME)

dolphin – file manager (KDE)

konqueror – web browser (KDE)

kate – text editor (KDE)

gedit – text editor (GNOME) System

Recovery – Type the phrase “REISUB” while holding down Alt and SysRq (PrintScrn) with about 1 second between each letter. Your system will reboot.

lsb_release -a – get Ubuntu version

uname -r – get kernel version

uname -a – get all kernel information

pwd     “Print working directory” – show what dir you’re in.

ls         List the contents of a dir.

ls -l      List the contents of a dir and show additional info of the files.

ls -a     List all files, including hidden files.

cd        Change directory.

cd ..     Go to the parent directory.

Examining files

Command     Action

file       Determine the type of a file.

cat       Concatenate a file.

less     View text files and paginate them if needed.

Manipulating files and directories

Command     Action

cp        Copy a file.

cp -i     Copy a file and ask before overwriting.

cp -r    Copy a directory with its contents.

mv       Move or rename a file.

mv -i   Move or rename a file and ask before overwriting.

rm       Remove a file.

rm -r    Remove a directory with its contents.

rm -i    Ask before removing a file. Good to use with the -r option.

mkdir Make a directory.

rmdir   Remove an empty directory.

8 thoughts on “REFFERENSI PERINTAH DASAR PADA DISTRO UBUNTU (DAN LINUX PADA UMUMNYA)

  1. Yudis 24 Februari 2009 / 13:12

    aSSALAMULAIKUM mas!!!
    Mas kalo kubuntu perintahnya hampir sama ga??
    satu lagi kok saya install kubuntu.susah buat update pake repo dari adpt instaler
    maksih

    • kangtatang 25 Februari 2009 / 00:29

      @ Yudis
      Salam,
      Ubuntu dengan Kubuntu memiliki perintah yang sama, sedangkan untuk beberapa aplikasi dikarenakan Kubuntu menggunakan Desktop manager KDE, maka beberapa Aplikasi standar GNOME ada kemungkinan tidak bisa berjalan. mungkin itu yang menyebabkan Update dari Repo error, coba update aplikasi yang khusus untuk KDE saja. biasanya aplikasinya diawali dengan huruf K (tidak semua sih, contoh Amarok. media Player untuk KDE tidak berawalan huruf K). ketika menggunakan Install manager, biasanya ada sedikit keterangan tentang aplikasi mana saja yang untuk KDE atau untuk GNOME.
      Terimakasih sudah berkunjung:)

  2. oktri 26 Maret 2010 / 09:13

    info yang menarik

  3. kangtatang 26 Maret 2010 / 12:03

    oktri :

    info yang menarik

    Terimakasih😀

  4. Simson 31 Mei 2010 / 07:05

    salam kenal, saya baru memulai memakai kubuntu mohon bantuanya terima kasih,

  5. rie 14 April 2011 / 04:05

    ijin share gan😉

    • kangtatang 17 April 2011 / 05:34

      Silahkan😀
      semoga bermanfaat

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s