Vizitatori
Avem 5 vizitatori online
|
Laborator
-
- help/manual comenzi
$ numeComanda --help $ man numeComanda
- operatii fisiere/directoare
$ pwd #afiseaza directorul curent $ ls #afiseaza informatii despre fisiere (implicit directorul curent); e.g $ ls -al $ cd $ mkdir $ cp $ mv $ rm $ chown #schimba titularul si/sau grupul fisierelor $ chgrp #schimba grupul fisierelor $ chmod #schimba modul fisierelor
- utilitare
$ echo #afiseaza o linie de text; e.g. $ echo $PATH ; echo "Salut IE" > salut.txt ; echo "data curenta : $(date)" >> salut.txt $ ps #afiseaza lista proceselor; e.g. ps -aux $ grep $ cat $ tail $ more $ fdisk #utilitar partitii; e.g $ sudo fdisk -l $ df #afiseaza spatiul liber; e.g. df -h $ wget URL #descarca fisierul de la adresa; e.g. $ wget http://www.skype.com/go/getskype-linux-beta-ubuntu-32
- fisiere shell (interpretor de comenzi)
$ touch nume.sh $ chmod +x nume.sh $ gedit nume.sh
nume.sh#!/bin/bash echo "Introduceti numele:" read NUME echo "nume = $NUME"
$ ./nume.sh
- operatii utilizatori
$ cat /etc/passwd $ useradd numeUser # -m=creeaza si directorul /home/numeUser $ passwd [numeUser] $ userdel numeUser
- operatii packete
$ cat /etc/apt/sources.list $ apt-cache search expresie # cauta in lista de pachete expresie; e.g. $ apt-cache search flashplugin $ sudo apt-get install numePacket #instalare packet din repository; e.g. $ sudo apt-get install mc $ sudo apt-get remove numePacket $ dpkg -i numePacket.deb #instalare packet; e.g $ dpkg -i skype-ubuntu-intrepid_2.1.0.81-1_i386.deb $ dpkg -r numePacket #dezinstalare packet
- compilare in linux
$ sudo apt-get install g++
helloWorld.cpp#include <iostream> using namespace std;
int main(){ cout << "Hello world !\n"; return 0; }
$ g++ helloWorld.cpp -o helloWorld $ ./helloWorld
- configurare gedit (GNOME Editor)
$ sudo apt-get install gedit-plugins $ wget http://www.stambouliote.de/download/gedit_classbrowser-0.2.1.tar.gz $ tar xvf gedit_classbrowser-0.2.1.tar.gz $ cd gedit_classbrowser-0.2.1 $ mkdir -p ~/.gnome2/gedit/plugins $ cp -Rf * ~/.gnome2/gedit/plugins $ sudo apt-get install ctags #Edit->Preferences->Plugins: Class Browser + Embedded Terminal #View: Side Pane + Bottom Pane
Resurse
- The Linux Documentation Project
- „Ubuntu Desktop 8.04”, Canonical, 2008;
- Garrels M. -„Introducere în Linux”;
- Pecheanu E. -„Sisteme de operare”;
- Helmke M., Hudson A., Hudson P. - „Ubuntu Unleashed, 2011 Edition”, Pearson Education, 2011;
- Hill B. M., Helmke M., Burger C. - „Ubuntu Book, Fifth Edition”, Prentice Hall, 2010;
- MS Press - Inside Windows 2000, Third Edition, 2000;
- MCSE Training Kit - Windows 2000 Professional 70-210, 2000;
|
|