Meaning of CHMOD
Chmod is the option for us to make file or folder have privilage status.
Standard form of chmod is:
$ chmod 421
The first digit : the file / folder is for user.
The second digit : file / folder is for group.
The third: universal user.
The amount of the number, has meanings:
4 >> Allow Read
2 >> Allow Write
1 >> Allow Execute
It is a standar number of chmod. If you meet 7,6,5,3, it must amount of standar number.
7 = 4 + 2 + 1
6 = 4 + 2
5 = 4 + 1
3 = 2 + 1
notes:
.. parent
elshadino act
Show Your Hardware in Linux
|UBUNTU|
To determine your hardware make and model, and more detailed information of your hardware, run this command from terminal:
Detect your processorelshadino act
# sudo lshw -C cpu
Detect your VGA
# sudo lshw -C video
Detect your Audio Card
# sudo lshw -C audio
Detect your Lan Card
# sudo lshw -C lan
User Management
| STARTCOM/REDHAT |
Adding user in terminal:
First way:
Login on root and follow this steps
$ adduser newusername -p newuserpassword
Second way:
Login on common user, and follow this steps
$ /usr/sbin/adduser newusername -p newuserpassword
elshadino act
Show Your Distro In Terminal
Many ways to show the linux version in terminal, they are:
$ dmesg | head -1
it will show you:
Linux version 2.6.18-92.el5xen (mockbuild@builder16.centos.org) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Tue Jun 10 19:55:54 EDT 2008
$ cat /proc/version
it will show you with the same as command before.
$ cat /etc/issue
it will show you this text
CentOS release final 5.2. (Final)
kernel \r on an \m
DOWNLOAD WITH WGET
GNU Wget is a simple linux program that retrieves content from web. Its name is derived from World Wide Web and get, connotative of its primary function. It currently supports downloading via HTTP, HTTPS and FTP protocols, the most popular TCP-IP -based protocols used for web browsing.
How to use it?
Open your terminal, set wget proxy with su login. With vi/vim text editor, edit the wget rc.
# vim /etc/wgetrc
search the http and ftp setting, set as your server proxy.
To start downloading:
# wget -c -i file-link
or
# wget -c download_link_location
elshadino act
Remove Program
Any ways to unistall program on linux, from terminal you can use this:
# aptitude remove package
# rpm --erase package
# rpm -qa | grep package
# sudo apt-get remove package
Then if you want to know what program had been installed, you can use this command:
# dpkg --list
elshadino act