eth0-m multiport-p UDP--dports 53,113,135,137,139,445-j DROP53,113,135,137,139,445 of messages dropped to UDP (primarily DNS, authentication, remote calls, files, and Printer sharing services) to the ETH0 network port# iptables-a input-i eth0-p UDP--dport 1026-j DROPPacket discards for 1026 ports that are accessing UDP on the Eth0 network port (10,261 as the next idle port, preventing port scanning)# iptables-a input-i eth0-m multiport-p tcp--dports 1433,4899-j DROPPacket discards for 1433 (SQL
commands under Linux to control task jobs executionThe following commands can be used to manipulate process tasks:PS Lists the processes that are running in the system;Kill sends a signal to one or more processes (often used to kill a process);Jobs lists the status of tasks that are started in the current shell environment, and if JOBSID is not specified, displa
Linux Task (Jobs) detailedAfter executing a command with the administrator, the command is moved to the background with CTRL + Z. Causes the root cannot be exited.Input command: ExitTerminal display: There is stopped jobs.Workaround:Method One, enter the command: JobsTerminal display: [1]+ Stopped vim/etc/network/interfaces >/home/leo/desktop/ip.txt (WD:/)KILL%1Method two, input command:
actively. But if you use the-9 signal. Since the vi work will be forcibly removed, the. FILENAME.SWP will continue to exist in the file system. So you should be able to tell a little bit about it?In fact, the magical effect of Kill is very infinite! With Signal's detailed information (using Man 7 signal to access relevant data), you can effectively manage your work and programs (process), in addition. That Killall is the same way of using it. You need to know at least 1, 9, and 15 of the three
After executing a command with the administrator, I use CTRL + Z to transfer the command to the background day. Cause I can't quit root.Input command: LogoutTerminal display: There is stopped jobs.Workaround:Input command: JobsTerminal display: [1]+ Stopped vim/etc/network/interfaces >/home/leo/desktop/ip.txt (WD:/)See for a long while did not see the process of PID, no way to kill.Continue to enter command: jobs-lTerminal display: [1]+ 4664 stop vim/
Linux Task (Jobs) detailedAfter executing a command with the administrator, the command is moved to the background with CTRL + Z. Causes the root cannot be exited.Input command: ExitTerminal display: There is stopped jobs.Workaround:Method One, enter the command: JobsTerminal display: [1]+ Stopped vim/etc/network/interfaces >/home/leo/desktop/ip.txt (WD:/)KILL%1Method two, input command:
Tags: simple operation of the Linux jobs commandJob is divided into foreground job and background jobThe foreground job (foreground) is started through the terminal, and the boot will always occupy the terminal. such as VIM, CPBackground jobs (background) can be started through the terminal,How do I get my job running in the background?1. If the job is already ru
This article turns from http://www.ibm.com/developerworks/cn/linux/l-cn-nohup/I'm working on my own. Need to remotely connect to the company's development machine, when running the program on the development machine, once exiting the terminal will cause the running program is terminated, how to solve it?The answer is to let the program run in the background, not affected by the current terminal process.The following methods come from two ideas:1. Make
Linux Timed Jobs (routine tasks)There are two types of scheduled jobs for Linux:? At: This job is performed only once and is canceled from the schedule in the Linux system;? Cron: This job will continue on a routine basis!At execution only onceTo use at to perform a task at
Tags: [1] Port Lin Sleep logs convert time process view# Import Time for in range (0, +): print i time.sleep (3)NOHUP directive >log.log 2>1 :Linux under Execution nohup python-u test.py >log.log 2>1 Jobs-l view the commands executed in the background:[1]-18071 running nohup python-u test.py >log.log 2>1 Output the Log.log file in real time: Tail-f Log.logConvert background commands to foreground:
such as Telnet, and the other is the port on the target machine where the Getty program is connected (for example, TTYP2). The Telnet program on the login machine and the login program on the target machine are communicated through the pseudo terminal ptyp2 and TTYP2.
The control terminal (/dev/tty) is a concept in the application. Each session group may have up to 1 control terminals, similar to Tty0, and performing the console interrupts currently in use. For this concept, it is recommended t
Yum.repos.dinit.dnbSp;prelink.conf.drsyslog.d 7. Copy all files in the/etc/directory that begin with L or M or N and end with. conf to the/TMP/MYTEST3 directory.Cp-r/etc/[lmn]*.conf/tmp/mytest3 or Cp-r/etc/{l,m,n}*.conf/tmp/mytest3Command Test and ResultsMkdir-p/tmp/mytest3;Cp-r/etc/[lmn]*.conf/tmp/mytest3; ls/tmp/mytest3ld.so.conf locale.conf mke2fs.conf nsswitch.conflibaudit.conf logrotate.conf mtools.conf numad.conflibuser.conf man_db.conf Nfsmount.confrm-rf/tmp/mytest3;Mkdir-p/tmp/mytest3;C
associated with a single partition;/root:root user's home directory;/media: Used to mount mobile portable devices, such as CDROM, USB, etc.;/MNT: Temporary file system mount point;/dev: The storage location of devices and special files, such as terminals, keyboards, hard drives, etc.;/OPT: Installation location of third-party applications, gradually replaced by/usr/local;/SRV: Data used by services running on the system;/tmp: temporary file storage location;/usr:universal GKFX, read-only data,
1,linux the distribution of each release, the relationship between, and the difference betweenThere are mainly the following distributionsDebian-based, mainly Debian, Ubuntu, mintDebian is a free distribution that is maintained by community organizations and is fully compliant with the GNU code. Using the Dpkg package management methodUbuntu is a Debian-based Linux system for desktop untable two releasesMin
Linux tips: Scheduling jobs with Cron and atOn Linux systems, many administrative tasks must be performed frequently and regularly. These tasks include rotating log files to avoid filling the file system, backing up data, and connecting time servers to perform system time synchronization. The tutorials mentioned above describe these administrative tasks in more d
(assuming num) through the Jobs command, and then execute the kill%num.Method Two:Use the PS command to view the job's process number (pid, assumed to be pid), and then execute the kill PID.2, the termination of the foreground process:"Ctrl" + "C"3. Other effects of KillIn addition to terminating the process, kill can also send other signals to the process, using kill-l to see the signals that kill supports.SIGTERM is the signal that kill sends witho
I want to switch to the background to run some services:Two methods:1. You can add a character to the last face of the start Service command at runtime, for example./servicestart 2. After the service starts, press CTRL + Z to switch the service to the background and pause, then use the command: BG number starts the service in the background and can use jobs to view the tasks in the background after startup.Note: number is the job ID, after pressing C
, upgrade, uninstall and other operations), and how to manage.11, how to use the distribution CD as a yum repository, please describe the process.12. Write a script to complete the following functions(1) Suppose that a directory (/etc/rc.d/rc3.d/) has a number of files with the beginning of K and S;(2) Displays the file name of all files that begin with K and appends a stop string to it;(3) Displays the file name of all files beginning with S and appends a start string to it;(4) The respective n
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.