亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? misc linux tips & tricks.txt

?? a collection of mega hacking tools
?? TXT
?? 第 1 頁 / 共 2 頁
字號:
 Tips

Speeding up your hard drive (#1)
Get faster file transfer by using 32-bit transfers on your hard drive

Just add the line:

hdparm -c3 /dev/hdX

to a bootup script.

If you use SuSE or other distros based on SYS V,

/sbin/init.d/boot.local
should work for you.

This enables 32-bit transfer on your hard drive. On some systems it can improve transfer performance by 75%.

To test your performance gain, type:

hdparm -t -T /dev/hdX

Protecting yourself from being a spam base(#2)
Sendmail allows for someone to telnet to port 25 and do an expn (expand) to see what users and aliases are on your machine. Also, vrfy (verify) means someone can get legal e-mail addresses from your box and send spam through your machine.

Don't want that, so look in your /etc/sendmail.cf file for a line that looks like this:

###############
# Options #
###############

Now cut and paste these next few lines below that:

# turning off the expand option and requiring a helo from
# a remote computer
Opnoexpn,novrfy,needmailhelo

Now there is no expansion, no verify, and sendmail requires a helo with a legitimate DNS in order to use the mailer.

Then look in your /etc/mail/aliases file and ensure you have only your own boxen and/or subnet in there as OK or RELAY. That will help cut down on spammers' ability to find relay machines to do their dirty work for them.

Cleaning up Netscape crashes(#3)
You have a tip about Netscape leaving copies of itself running below, but you can make a general shell script to clean up a Netscape crash like this:

#!/bin/sh
#kill.netscape
killall -9 netscape
rm ~/.netscape/lock

Then all your users can use it and clean up the dreaded hundred instances of Netscape running when it crashed. Change netscape to netscape-communicator or netscape-navigator as appropriate

More DOS-like commands(#4)
Many people are moving to Linux because they miss the stability of good old DOS. In that light, many users are typing DOS commands (which originated from UNIX in the first place) that look fine but cause errors. The command "cd.." in DOS is perfectly valid, but Linux balks. This is because "cd" is a command, and any parameter for that command must be separated from the command by a space. The same goes for "cd/" and "cd~". A quick fix is here.

Use your favorite text editor in your home directory to edit the file ".bashrc". The period is there on purpose, this hides the file from normal ls display.

Add the lines:

alias cd/="cd /"
alias cd~="cd ~"
alias cd..="cd .."

And I usually add these...

alias md="mkdir"
alias rd="rmdir -i"
alias rm="rm -i"

and my first and still favorite alias...

alias ls="ls --color"

alias is a powerful tool, and can be used in the .bashrc script as well as from the command line. You can, if you want to spend the time, create your own group of shell commands to suit how you work. As long as you put them in your .bashrc file, they'll be there everytime you log in. Note that if you frequently log in as root, you might want to copy /home/username/.bashrc to /root/.bashrc to keep yourself sane.

Resurrecting corrupted floppies(#5)
Here's how to make a floppy disk with "track-0 bad" reusable again:

If the track zero of a floppy disk is found to be bad, no DOS or Windows utility is going to do anything about it--you just have to throw it in your unrecycle bin.

This tip cannot recover the data, but can make the disk carry things again, at least for the time being (moments of desperation).

How to:

(A) Format the disk with Linux. Build a Linux file system (don't use mformat). I did this some time before by invoking the makebootdisk command (in Slakware) and stopped after the formatting was over. There should be better ways to do it in RedHat 5.2 or other recent versions.

( Reformat the disk with Windows. Use the DOS window and the /u option while formatting.

Using DOS-like commands(#6)
There's a package called mtools which is included with most of the distributions out there.

There are several commands for basic DOS stuff. For example, to directory the floppy drive, type mdir a:. This is rather handy--you don't need to mount the floppy drive to use it.

Other commands are: mattrib , mcd, mcopy, mdel, mformat, mlabel, mren (rename), mmd, mrd, and mtype.

This doesn't work for reading from hard disks. In that case, you would add entries to /etc/fstab, drive type msdos for fat16 partitions, and vfat for fat32.

Copying files from Linux to Windows 98 or 95B (FAT32)(#7)
It's as easy as installing the program explore2fs. It uses a Windows Explorer interface and supports drag-and-drop. I have found it reliable and useful for migrating files from my RedHat 6.1 partition to my Win95B partition quickly and with a minimum of fuss.

It's available free--as all software should be--from this URL:
CODE
http://uranus.it.swin.edu.au/~jn/linux/explore2fs.htm


Installing in partitions(#8)
I am using SuSE Linux, which has some interesting options (I don't know if RedHat or other distributions offer you this, too).

1. You can install Linux on a single file in your Windows Partition. Nice to try it out, but I guess it is not that fast then. You can load it then with a DOS program, loadlin.

2. Use Fips or Partition Magic. Defragment your hard drive (you should do this for Point 1, too) and split it up. I guess most users just have one partition, which you should split up into at least three: one for the Linux files, and a smaller swap partition (take about 32 to 64 MB, depending on your RAM--less RAM needs bigger swap partitions). If you decide later to deinstall Linux you can always delete both partitions and create one big one for Windows again.

Fips is a stupid command line program, but if you're too lazy to read at least a little bit, then you should stop thinking about Linux anyway...

Command Pipelines(#9)
Pipes are easy. The Unix shells provide mechanisms which you can use them to allow you to generate remarkably sophisticated `programs' out of simple components. We call that a pipeline. A pipeline is composed of a data generator, a series of filters, and a data consumer. Often that final stage is as simple as displaying the final output on stdout, and sometimes the first stage is as simple as reading from stdin. I think all shells use the "|" character to separate each stage of a pipeline. So:

data-generator | filter | ... | filter | data-consumer

Each stage of the pipeline runs in parallel, within the limits which the system permits. Hey, look closely, because that last phrase is important. Are you on a uni-processor system because if you are, then obviously only one process runs at a time, although that point is simply nitpicking. But pipes are buffers capable of holding only finite data. A process can write into a pipe until that pipe is full. When the pipe is full the process writing into it blocks until some of the data already in the pipe has been read. Similarly, a process can read from a pipe until that pipe is empty. When it's empty the reading process is blocked until some more data has been written into the pipe.

What is IP masquerading and when is it of use?(#10)
IP masquerading is a process where one computer acts as an IP gateway for a network. All computers on the network send their IP packets through the gateway, which replaces the source IP address with its own address and then forwards it to the internet. Perhaps the source IP port number is also replaced with another port number, although that is less interesting. All hosts on the internet see the packet as originating from the gateway.

Any host on the Internet which wishes to send a packet back, ie in reply, must necessarily address that packet to the gateway. Remember that the gateway is the only host seen on the internet. The gateway rewrites the destination address, replacing its own address with the IP address of the machine which is being masqueraded, and forwards that packet on to the local network for delivery.

This procedure sounds simple, and it is. It provides an effective means by which you can provide second class internet connections for a complete LAN using only one (internet) IP address.

Setting UTC or local time(#11)
When Linux boots, one of the initialisation scripts will run the /sbin/hwclock program to copy the current hardware clock time to the system clock. hwclock will assume the hardware clock is set to local time unless it is run with the --utc switch. Rather than editing the startup script, under Red Hat Linux you should edit the /etc/sysconfig/clock file and change the ``UTC'' line to either ``UTC=true'' or ``UTC=false'' as appropriate.
Setting the system clock(#12)
To set the system clock under Linux, use the date command. As an example, to set the current time and date to July 31, 11:16pm, type ``date 07312316'' (note that the time is given in 24 hour notation). If you wanted to change the year as well, you could type ``date 073123161998''. To set the seconds as well, type ``date 07312316.30'' or ``date 073123161998.30''. To see what Linux thinks the current local time is, run date with no arguments.

Setting the hardware clock(#13)
To set the hardware clock, my favourite way is to set the system clock first, and then set the hardware clock to the current system clock by typing ``/sbin/hwclock --systohc'' (or ``/sbin/hwclock --systohc --utc'' if you are keeping the hardware clock in UTC). To see what the hardware clock is currently set to, run hwclock with no arguments. If the hardware clock is in UTC and you want to see the local equivalent, type ``/sbin/hwclock --utc''


Setting your timezone(#14)
The timezone under Linux is set by a symbolic link from /etc/localtime[1] to a file in the /usr/share/zoneinfo[2] directory that corresponds with what timezone you are in. For example, since I'm in South Australia, /etc/localtime is a symlink to /usr/share/zoneinfo/Australia/South. To set this link, type:

ln -sf ../usr/share/zoneinfo/your/zone /etc/localtime

Replace your/zone with something like Australia/NSW or Australia/Perth. Have a look in the directories under /usr/share/zoneinfo to see what timezones are available.

[1] This assumes that /usr/share/zoneinfo is linked to /etc/localtime as it is under Red Hat Linux.

[2] On older systems, you'll find that /usr/lib/zoneinfo is used instead of /usr/share/zoneinfo. See also the later section ``The time in some applications is wrong''.


Zombies(#15)
What are these zombie processes that show up in ps? I kill them but they don't go away!

Zombies are dead processes. You cannot kill the dead. All processes eventually die, and when they do they become zombies. They consume almost no resources, which is to be expected because they are dead! The reason for zombies is so the zombie's parent (process) can retrieve the zombie's exit status and resource usage statistics. The parent signals the operating system that it no longer needs the zombie by using one of the wait() system calls.

When a process dies, its child processes all become children of process number 1, which is the init process. Init is ``always'' waiting for children to die, so that they don't remain as zombies.

If you have zombie processes it means those zombies have not been waited for by their parent (look at PPID displayed by ps -l). You have three choices: Fix the parent process (make it wait); kill the parent; or live with it. Remember that living with it is not so hard because zombies take up little more than one extra line in the output of ps.


How do i give users an ftp only account (no telnet, etc).(#16)

give them shell which doesn't work, but is listed in /etc/shells
for example /bin/false...


How to do backup with tar?(#17)
You can mantain a list of files that you with to backup into a file and tar
it when you wish.

tar czvf tarfile.tar.gz -T list_file

where list_file is a simple list of what you want to include into the tar

i.e:

/etc/smb.conf
/root/myfile
/etc/ppp (all files into the /etc/ppp directory)
/opt/gnome/html/gnome-dev-info.html

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人一区二区三区视频在线观看 | 亚洲视频香蕉人妖| 精品国产免费一区二区三区香蕉| 欧洲一区二区三区在线| 日本久久精品电影| 欧美日韩高清一区二区不卡| 欧美视频一二三区| 337p亚洲精品色噜噜噜| 欧美mv日韩mv国产网站app| 日韩欧美自拍偷拍| 国产日产欧美一区二区视频| 国产日韩精品久久久| 亚洲人午夜精品天堂一二香蕉| 亚洲人午夜精品天堂一二香蕉| 一区二区三区产品免费精品久久75| 亚洲一区二区三区精品在线| 青青草国产成人av片免费| 久88久久88久久久| 91网站最新网址| 欧美日韩一区二区在线视频| 日韩午夜精品视频| 亚洲国产精品成人综合色在线婷婷| 中文字幕中文在线不卡住| 亚洲综合在线五月| 久久精品国产一区二区三区免费看 | 亚洲欧洲综合另类在线| 天堂精品中文字幕在线| 极品销魂美女一区二区三区| k8久久久一区二区三区| 欧美日韩国产经典色站一区二区三区 | 国产精品正在播放| 色综合久久综合网97色综合| 日韩欧美中文一区二区| 一区在线观看视频| 热久久一区二区| 成人av在线电影| 欧美一区二区三区免费大片| 国产精品久久久久三级| 麻豆精品在线观看| 在线观看三级视频欧美| 久久精品视频一区二区三区| 亚洲成av人片一区二区梦乃| 成人性生交大片免费看视频在线 | 天堂在线一区二区| 成人激情文学综合网| 日韩视频免费观看高清完整版在线观看 | 亚洲国产成人一区二区三区| 日本伊人午夜精品| 欧美在线观看禁18| 国产精品久久久久久久午夜片| 人人狠狠综合久久亚洲| 欧美性猛片aaaaaaa做受| 国产精品久久国产精麻豆99网站 | 亚洲欧美日韩国产一区二区三区| 久久99精品久久久久久| 精品视频1区2区| 亚洲色图视频网| 成人性色生活片| 久久精品一区二区三区av| 日韩电影免费在线看| 欧美美女一区二区三区| 一区二区三区四区在线播放| 不卡一卡二卡三乱码免费网站 | 国产99久久久国产精品潘金网站| 91精选在线观看| 日韩一区欧美二区| 欧美精品v国产精品v日韩精品| 一区二区三区在线看| 色综合久久久久久久| 亚洲免费在线观看| 色视频欧美一区二区三区| 最新国产成人在线观看| 99久久99久久精品免费观看| 日韩一区欧美一区| 99re视频精品| 亚洲永久免费av| 欧美日韩不卡在线| 日韩av电影天堂| 日韩色视频在线观看| 麻豆精品久久精品色综合| 精品久久国产老人久久综合| 经典三级视频一区| 国产精品区一区二区三| 色综合久久久久久久久| 亚洲国产裸拍裸体视频在线观看乱了 | 久久精品一区二区三区四区| 国产老妇另类xxxxx| 中文字幕一区二区三区蜜月| 色综合天天狠狠| 亚洲1区2区3区视频| 欧美一级免费大片| 国产一区二区0| 中文字幕欧美一| 欧美亚洲一区二区三区四区| 视频一区二区三区入口| 久久久久9999亚洲精品| 99久久er热在这里只有精品66| 一二三四社区欧美黄| 欧美大尺度电影在线| 成人免费观看视频| 伊人夜夜躁av伊人久久| 91精品国产色综合久久不卡蜜臀| 激情五月婷婷综合| 亚洲天堂av一区| 日韩欧美在线观看一区二区三区| 国产宾馆实践打屁股91| 午夜精品福利在线| 国产欧美日本一区视频| 欧美三级资源在线| 97se狠狠狠综合亚洲狠狠| 一区二区三区波多野结衣在线观看| 在线不卡一区二区| 成人激情动漫在线观看| 秋霞av亚洲一区二区三| 综合欧美亚洲日本| 精品美女在线观看| 在线看不卡av| 国产在线精品国自产拍免费| 一区二区三区四区在线| 日本一区二区在线不卡| 欧美一区二区三区免费| 欧洲另类一二三四区| 成人性生交大片免费看中文| 老司机免费视频一区二区三区| 一级日本不卡的影视| 国产精品欧美极品| 精品第一国产综合精品aⅴ| 欧美色精品在线视频| 91视频一区二区三区| 国产成人8x视频一区二区| 奇米精品一区二区三区在线观看 | 日韩午夜精品电影| 欧美日韩一区不卡| 91丨国产丨九色丨pron| 成人国产免费视频| 国产精品一卡二卡| 国产精品综合视频| 精品亚洲porn| 日韩成人一区二区三区在线观看| 亚洲乱码国产乱码精品精98午夜| 国产喷白浆一区二区三区| 2020国产精品自拍| 欧美电影免费观看完整版| 91精品婷婷国产综合久久竹菊| 欧美视频一区在线观看| 色综合网站在线| 色综合天天综合网国产成人综合天 | 91精品国产福利在线观看| 欧美性大战xxxxx久久久| 日本高清不卡在线观看| 93久久精品日日躁夜夜躁欧美| 高清国产一区二区| 波多野结衣在线aⅴ中文字幕不卡| 国产麻豆视频精品| 国产一区二区三区免费播放| 国产乱人伦偷精品视频免下载| 国产主播一区二区| 国产精品一区专区| 丁香网亚洲国际| 91在线观看视频| 在线一区二区三区| 欧美日韩一区高清| 日韩欧美一区二区不卡| 精品久久久网站| 国产精品拍天天在线| 一区二区三区.www| 丝袜a∨在线一区二区三区不卡| 日本怡春院一区二区| 国产精品香蕉一区二区三区| 国产.欧美.日韩| 色妹子一区二区| 欧美一级久久久| 国产精品美女一区二区三区| 亚洲美女屁股眼交| 日本女人一区二区三区| 国产美女精品在线| 91在线一区二区| 欧美一区二区三区在线看| 久久先锋资源网| 亚洲成人中文在线| 国产一区不卡精品| 欧美中文字幕一区二区三区 | 欧美日韩激情在线| 欧美精品一区二区三区蜜臀| 国产精品美女久久久久久久网站| 夜夜精品浪潮av一区二区三区| 久久精品99国产国产精| 成人小视频免费观看| 制服丝袜国产精品| 亚洲欧洲综合另类在线| 精品一区二区三区av| 色偷偷久久一区二区三区| 久久亚洲一区二区三区明星换脸 | 蜜桃精品视频在线观看| 99久久99久久综合| 久久亚洲综合色| 男男成人高潮片免费网站| 色美美综合视频| 日本一区二区动态图| 精一区二区三区|