前言
发现了游戏里一个有意思的机制:
血量低于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 |
pwd
Print Working Directory. Find out the path of the current working directory.
cd
Change Directory. Change the current working directory
ls
List. View the contents of a directory.
cat
Concatenate. List the contents of a file on the standard output (stdout
).
cp
Copy. cp filename somewhere will copy file to the directory.
mv
Move files, and also can be used to rename files.
mkdir
Make Directory.
rmdir
Remove Directory. Only allows you to delete empty directories.
rm
Remove Files. rm -r
alternative to rmdir
.
touch
Create a blank new file.
locate
Locate a file. Use locate -i
to be case-insensitive. locate A*B
search files contain A
and B
.
find
Similar to locate. But you need to give it a directory.
grep
Search through all the text in a given file.
sudo
SuperUser Do.
df
Get a report on the system’s disk space usage, shown in percentage and KBs.
df -m
to show in megabytes.
du
Disk Usage. type -h
to get human readable statics.
head
View the first lines of any text file.
head -n somenumber filename.txt. View fist somenumber lines of file.
tail
View last lines.
diff
Difference. Compares the contents of two files line by line. After analyzing the files, it will output the lines that do not match.
tar
Archive multiple files into a tarball.
chmod
Change the read, write, and execute permissions of files and directories.
chown
Change or transfer the ownership of a file to the specified username.
jobs
Display all current jobs along with their statuses.
Kill
Send a certain signal to an app and instructs the app to terminate itself. Kill by its PID.