前言
发现了游戏里一个有意思的机制:
血量低于80%时,减伤(80%-当前血量%)
无聊就打算建模一下,看看残血减伤有多可怕。
sudo apt-get update |
check vsftpd version
vsftpd -v |
Change FTP password
sudo passwd ftp |
The configuration file locates in /etc/vsftpd.conf . Change Below:
listen=YES |
Go to file /etc/pam.d/vsftpd , change below:
#auth required pam_shells.so |
In Windows, install WinSCP .
Choose SFTP. Login to VPS.
Done. Enjoy.
Make sure the Linux is 32-bit!
Go to https://homes.cs.washington.edu/~tom/nachos/, download nachos-4.0.tar, and download mips-x86.linux-xgcc .
wget http://www.cs.washington.edu/homes/tom/nachos/nachos-4.0.tar |
pwdPrint Working Directory. Find out the path of the current working directory.
cdChange Directory. Change the current working directory
lsList. View the contents of a directory.
catConcatenate. List the contents of a file on the standard output (stdout).
cpCopy. cp filename somewhere will copy file to the directory.
mvMove files, and also can be used to rename files.
mkdirMake Directory.
rmdirRemove Directory. Only allows you to delete empty directories.
rmRemove Files. rm -r alternative to rmdir.
touchCreate a blank new file.
locateLocate a file. Use locate -i to be case-insensitive. locate A*B search files contain A and B.
findSimilar to locate. But you need to give it a directory.
grepSearch through all the text in a given file.
sudoSuperUser Do.
dfGet a report on the system’s disk space usage, shown in percentage and KBs.
df -m to show in megabytes.
duDisk Usage. type -h to get human readable statics.
headView the first lines of any text file.
head -n somenumber filename.txt. View fist somenumber lines of file.
tailView last lines.
diffDifference. Compares the contents of two files line by line. After analyzing the files, it will output the lines that do not match.
tarArchive multiple files into a tarball.
chmodChange the read, write, and execute permissions of files and directories.
chownChange or transfer the ownership of a file to the specified username.
jobsDisplay all current jobs along with their statuses.
KillSend a certain signal to an app and instructs the app to terminate itself. Kill by its PID.