Archive

Posts Tagged ‘Linux’

Edubuntu Basic Linux Commands II: Build an LTSP Network in Your Neighb…

June 24th, 2009 admin 1 comment

Categories: Linux Tags: ,

Edubuntu Basic Linux Commands I: Build an LTSP Network in Your Neighbo…

June 24th, 2009 admin No comments

Categories: Linux Tags: , , ,

Basic Linux Commands

June 17th, 2009 admin 1 comment

mkdir – make directories

Usage

mkdir [OPTION] DIRECTORY

Options

Create the DIRECTORY(ies), if they do not already exist.

Mandatory arguments to long options are mandatory for short options too.

-m, mode=MODE  set permission mode (as in chmod), not rwxrwxrwx – umask

-p, parents  no error if existing, make parent directories as needed

-v, verbose  print a message for each created directory

-help display this help and exit

-version output version information and exit

cd – change directories

Use cd to change directories. Type cd followed by the name of a directory to access that directory.Keep in mind that you are always in a directory and can navigate to directories hierarchically above or below.

mv- change the name of a directory

Type mv followed by the current name of a directory and the new name of the directory.

Ex: mv testdir newnamedir

pwd – print working directory

will show you the full path to the directory you are currently in. This is very handy to use, especially when performing some of the other commands on this page

rmdir - Remove an existing directory

rm -r

Removes directories and files within the directories recursively.

chown – change file owner and group

Usage

chown [OPTION] OWNER[:[GROUP]] FILE

chown [OPTION] :GROUP FILE

chown [OPTION] –reference=RFILE FILE

Options

Change the owner and/or group of each FILE to OWNER and/or GROUP. With –reference, change the owner and group of each FILE to those of RFILE.

-c, changes like verbose but report only when a change is made

-dereference affect the referent of each symbolic link, rather than the symbolic link itself

-h, no-dereference affect each symbolic link instead of any referenced file (useful only on systems that can         change the ownership of a symlink)

-from=CURRENT_OWNER:CURRENT_GROUP

change the owner and/or group of each file only if its current owner and/or group match those specified here.  Either  may  be  omitted,  in which case a match is not required for the omitted attribute.

-no-preserve-root do not treat `/’ specially (the default)

-preserve-root fail to operate recursively on `/’

-f, -silent, -quiet  suppress most error messages

-reference=RFILE use RFILE’s owner and group rather than the specifying OWNER:GROUP values

-R, -recursive operate on files and directories recursively

Read more…

Công nghệ clustering trên Linux

June 17th, 2009 admin No comments
Hiện nay công nghệ clustering được dùng rộng rãi cho các hệ thống cần độ sẵn sàng phục vụ cao. Các nhà cung cấp lớn đều có các giải pháp clustering của mình. Các giải pháp clustering trên Linux được đặc biệt quan tâm do tính kinh tế, khả nǎng dịch vụ cao, và đa dạng. Chúng ta hãy cùng xem xét về công nghệ clustering.

Khái niệm clustering có nghĩa khác nhau trong các ngữ cảnh khác nhau. Clustering bao gồm có hai hướng chính là:

- Clustering cho tính toán (chẳng hạn Beowulf): kết hợp sử dụng nhiều máy để tǎng sức mạnh tính toán, kiểu này thường được áp dụng cho các công việc đòi hỏi tính toán chuyên sâu. Mô hình clustering này được dùng cho các dự án khoa học trong các lĩnh vực thiên vǎn, hạt cơ bản, mô tả bản đồ gien, y học…
Read more…

Linux command (tiếng việt )

June 17th, 2009 admin No comments

Các Lệnh Về Khởi Tạo
- rlogin: dùng để điều khiển hoặc thao tác lệnh trên một máy khác.

- exit: thoát khỏi hệ thống (Bourne-Shell).

- logout: thoát khỏi hệ thống C-Shell.

- id: chỉ danh của người sử dụng.

- logname: tên người sử dụng login.

- man: giúp đỡ.

- newgrp: chuyển người sử dụng sang một nhóm mới.

- psswd: thay đổi password của người sử dụng.

- set: xác định các biến môi trường.

- tty: đặt các thông số terminal.

- uname: tên của hệ thống (host).

- who: cho biết những ai đang thâm nhập hệ thống.

* Lệnh Về Trình Báo Màn Hình:
- echo: hiển thị dòng ký tự hay biến.

- setcolor: đặt màu nền và chữ của màn hình.

Read more…

Zip a Folder in Linux

June 17th, 2009 admin No comments

I keep forgetting the command to zip a folder in Linux . And I have even got all files in the folder got zipped individually when I typed the command wrongly, which looked funny to me. The correct command, to remind myself:

zip -9 -r file name .zip  folder name

To zip a single file:

zip -9

Use “-9″ for best compression. The compressed file works fine with Windows XP compression tool.

there are many variants of zip command like bzip and gunzip but I think zip is fine enough. though I think bzip gives little better compression. If you get an error like command not found then your system may not support zip (which is certainly shocking!) though in that case you can use tar command.

tar -cvzf <tar_file_name.tar> <file_name>

to untar the file, you need to use

tar -xvzf <tar_file_name.tar>
Categories: Linux Tags: , ,