Sign In or Register
Not Registered Yet?

Join Now! It's FREE. Get full access and benefit from this site

Reset My password - Remind Me My username

Remember me

شاید برای شما هم پیش آمده باشد که فلش یا سیستم شما ویروسی شده باشد، و فایلها و و فولدرهای شما مخفی شده و قابل رویت نیستند.

برای آشکار کردن فایل ها و فولدر های مخفی شده توسط ویروس ها در فلش دیسک و هارد این راه حل را دنبال کنید:




Unhide virus infected files

Click on "Start" -->Run --> type cmd and click on OK. از طریق منوی استارت cmd را اجرا کنید.

Here I assume your flash drive letter as G:

Enter this command.

attrib -h -r -s /s /d g:\*.*

You can copy the above command --> Right-click in the Command Prompt and

paste it.

Note : Don't forget to replace the letter g with your flash drive letter.

Now press "Enter".

Now check for your files in Flash Drive.


نظرات (0) کلیک ها: 401

در ابتدا چنانچه این ادیتور روی سرور نباشد باید آن را نصب کنید با این دستور:

yum install vim

سپس با رفتن بر روی فولدر مورد نظر با استفاده از (cd /) به این ترتیب نام فایل را وارد می کنیم تا در ادیتور باز شود:

vim filename

حالا با استفاده از این کلیدها و میانبرها می توانید مدیریت نمایید.

برای ذخیره ی فایل و سپس بستن آن از این ترکیب استفاده نمایید:

Esc Shift+Z Shift+Z

سایر کلید ها را در زیر مشاهده می فرمایید:

Hit the Esc key; that goes into command mode. Then you can type

  • :q to quit (short for :quit)
  • :q! to quit without saving (short for :quit!)
  • :wq to write and quit (think write and quit)
  • :wq! to write and quit even if file has only read permission (if file does not have write permission: force write)
  • :x to write and quit (shorter than :wq)
  • :qa to quit all (short for :quitall)

When you press :, a : will appear at the bottom of the screen.

Or you can press Esc ZZ (Esc Shift+Z Shift+Z) to write/save if the file was changed, then quit.

Or if you don't want to save changes you can use ZQ instead.

Vim has extensive help, so type Esc:helpReturn and you will have all your answers and even a neat tutorial.

نظرات (0) کلیک ها: 470

چطور ورژن Centos را در بدست بیاوریم.

How to Check CentOS Version Number

The easiest way to check your CentOS version is via the command line.

Login to your CentOS server using SSH and run the following command:

cat /etc/centos-release

You may also use:
cat /etc/redhat-release

This should return the following CentOS version information:
CentOS release 6.2 (Final)

CentOS version history follows that of Red Hat but it could be delayed, which is just one of a few things you should know before running a CentOS server.

Let’s break this down:

CentOS – This is your Linux distribution. This may seem obvious but in doing outsourced support, we sometimes find surprises.

6.2 – There are two parts of this version number. 6 is the major release version for this Linux distribution. The 2 represents the second update for this release. Red Hat, Fedora and CentOS Linux distributions use this version system.
Kernel Versions

Know that you know your CentOS version, you may also want to check what kernel is running on your CentOS server. You can check which kernel you are using by running:
uname -a

This will return:
Linux office.rackaid.net 2.6.32-220.2.1.el6.x86_64 #1 SMP
Fri Dec 23 02:21:33 CST 2011 ×86_64 ×86_64 ×86_64 GNU/Linux

If you use 3rd party repos, make sure you add the appropriate i386 or x86_64 bit versions of software.
You may notice that this is not the latest kernel, but this it typical. However, I don’t recommend picking a Linux distribution just because it runs the latest kernel. The most important thing is that you are running the latest kernel for our CentOS server.

This is the kernel that is actually running on your server. There you could be newer kernels installed on your CentOS server but not actually running. You can list the installed kernels using yum or rpm. You can then see which kernel will start on boot by checking your /etc/grub.conf.

If you run a CentOS server, keeping track of CentOS versions is important. The best way to do this is to follow the CentOS web site so you can stay on top of your chosen Linux distribution.

نظرات (0) کلیک ها: 386

ایجاد انواع فایل های فشرده روی سرور با استفاده از SSH

Create Archives using SSH


Create Zip File

If you want to create zip file of whole folder then try below command in SSH.
zip -R foldername/

If you are already inside that folder and want all file to be archived then use below command.
zip -R *

Create Tar File

Use below commands if you want to create a tar file.
Create Tar File

tar -zcf file.tar foldername/


Create Tar gz File

    tar -czvf name_of_archive.tar.gz name_of_folder/

The archive will be created in the folder from which you ran the command.

نظرات (0) کلیک ها: 487



In my application I am using a div element. There is some extra space found below and above the div element.

How can I remove that?




Each browser has it's own default values for margin and padding on various elements. So unless you explicitly set eg.

div {

in your CSS stylesheet, there will be some spacing below and above your div.

What's more annoying is that each different browser will have different default values for padding and margin on divs eg. Firefox might have 10px margin and IE may have 8px margin.

I find it is best to initially reset all these defaults to zero at the top of my stylesheets. eg.

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;

In fact for this I use the brilliant Blueprint CSS as it has a reset.css file included which does the trick!


نظرات (0) کلیک ها: 443

رویا پردازی از شما طراحی از ما - پروگراف طراحی سایت و گرافیک