Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

cheat sheet for linux and unix

A small Linux cheat sheet, introducing the very basic and very essential commands for surviving at the Linux CLI.
Moving around in the file system
Command
Action
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.
rpm command cheat sheet for Linux
rpm is a powerful Package Manager for Red Hat, Suse and Fedora Linux. It can be used to build, install, query, verify, update, and remove/erase individual software packages. A Package consists of an archive of files, and package information, including name, version, and description:
Syntax
Description
Example(s)
rpm -ivh {rpm-file}
Install the package
rpm -ivh mozilla-mail-1.7.5-17.i586.rpm
rpm -ivh --test mozilla-mail-1.7.5-17.i586.rpm
rpm -Uvh {rpm-file}
Upgrade package
rpm -Uvh mozilla-mail-1.7.6-12.i586.rpm
rpm -Uvh --test mozilla-mail-1.7.6-12.i586.rpm
rpm -ev {package}
Erase/remove/ an installed package
rpm -ev mozilla-mail
rpm -ev --nodeps {package}
Erase/remove/ an installed package without checking for dependencies
rpm -ev --nodeps mozilla-mail
rpm -qa
Display list all installed packages
rpm -qa
rpm -qa | less
rpm -qi {package}
Display installed information along with package version and


Ïà¹ØÎĵµ£º

LinuxϵÄDhcp°²×°(·þÎñÆ÷ÃûDHcpd)

 
Ò» °²×°DHCP·þÎñÆ÷
1.ÏȲ鿴ϵͳÊÇ·ñ°²×°DHcp
#rpm -qa|grep dhcp
2.°²×°RPM°ü,Èç¹ûÊÇRea Hat LInux9°²×°°üÔÚµÚ¶þÕ¹âÅÌ,¹ÒÔÚÁ˹âÇýºó¿ÉÓòéÕÒÃüÁîÕÒDHCP°ü
#find /mnt/cdrom/ -name "dhcp"
3.²é¿´findÃüÁîËѳöÀ´µÄÎļþ·¾¶½øÐа²×°
#rpm -ivh/mnt/cdrom/RedHat/RPMS/dhcp*/dhcpd*(¸ù¾Ý×Ô¼ºÊµ¼ÊÎļþ·¾¶)
4. ......

Linux×ÀÃæ£¬ÄÑÒÔÍüÈ´µÄÊ®Äê

    ÖÁ½ñ£¬Linux×ÀÃæÎÊÊÀÒÑÓÐÊ®¸öÄêÍ·£®»Ø¹ËÒÔÍù£¬Ò»ÊÂÎ޳ɣ¬²»¿°»ØÊ×£®´Ë»°Ôõ½²£¿
´óÔ¼ÔÚ10Äêǰ£¬ÃÀ¹úCorel¹«Ë¾×îÔ翪ʼ׷ÇóÒ»¸öÃÎÏ룺ÔÚLinux»ù´¡ÉϸøÓû§Ìṩһ¸ö¹¤×÷×ÀÃæ£¨¼´×îÔçµÄLinux×ÀÃæ£©£¬Õâ¾ÍÊÇCorelµÄWordPerfectÎÄ×Ö´¦Àí³ÌÐò£®¼ÇµÃ£¬´ó¸ÅÔÚ1999ÄêµÄº®¶¬£¬ÔÚ±±¾©Õ¹ÀÀ¹Ý¾Ù°ìµÄÄǴΣ¢±±¾©¹ú ......

µÚÎå¿Î Óеã±äζµÄLinux ¿Î³Ì

     ±ä³ÉѧϰQTÁË...º¹.
     ÖÆ×÷Hello World µ½ ʱÖÓ³ÌÐò ... ×î¶àµÄ»¹ÊÇÊìϤ×é¼þµÄʹÓã¬Ê¹ÓöøÒÑ£¬¹¤¾ß¶øÒÑ£¬´ó²¿·Ö¶¼ÊÇÀ×ͬµÄ£¬ÆäʵÎÒÃÇҪѧµÄ²»¶à£¬Ò²¾ÍÊǺÍVC++ »òÕßBC++²»Í¬µÄ»úÖÆ»òÕßеļ¼ÇÉ¡£×é¼þÓõ½Ê±ºò²é²é¾ÍOK£¬Ã»±ØÒªÏµÍ³µÄѧ£¬ÒòΪÎÒÃÇÓò»Ì«µ½¡£
   ......

Mysql¡¢Apache¡¢PhpµÄÐ¶ÔØ (Linux)

 Ð¶ÔØMysql
[root@localhost ~]# rpm -qa | grep mysql
mysql-3.23.58-9
php-mysql-4.3.4-11
mod_auth_mysql-20030510-4.1
mysql-server-3.23.58-9
˵Ã÷£ºrpm –qa | grep mysql ÃüÁîÊÇΪÁ˰ÑmysqlÏà¹ØµÄ°ü¶¼ÁгöÀ´£¬Ð¶Ôض¼´Ó×îÏÂÃæµÄÒ»¸ö°ü¿ªÊ¼£¬Ö±µ½Ð¶ÔصôµÚÒ»¸öΪֹ¡£Ö´ÐÐrpm -q php£¬Èç¹û·µ»Øphp°æ±¾£¬ ......

linux£¨ÎÞͼÐνçÃæ£©Í¨¹ýwindows´úÀí·þÎñÆ÷ÉÏÍø

 ±³¾°£ºÔÚÊÖ»úwap³ÌÐò¹¤×÷ÔÚlinuxÏ£¬Ðèͨ¹ýwindows´úÀí·þÎñÆ÷ÉÏÍø£¨http/https£©£¬ISA´úÀí¡£Ê¹ÓôúÀíÐèÒªÓòÃû\Óû§ÃûºÍÃÜÂë¡£
1¡¢ÏÈÖ´ÐÐÃüÁîÉèÖû·¾³±äÁ¿export http_proxy=http://192.168.24.254:8080/ºÍexport http_proxy=http://sywgdev.net\proteinx@192.168.24.254:8080/¡£µ«Ö´ÐÐʧ°Ü¡£±¨407´í£¬ÈÏ֤ʧ°Ü¡£
2¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ