shell 脚本如下 这个scp脚本是成功的 然后我现在想要在scp执行完以后执行自动启动jar包
set timeout 300
spawn scp -r /root/.jenkins/workspace/adfinal/store/target/store-0.0.1-SNAPSHOT.jar root@
expect {
-re "password:" {send "Wztisroot\r"}
set timeout 300
spawn scp -r /root/.jenkins/workspace/adfinal/store/target/store-0.0.1-SNAPSHOT.jar root@
expect {
-re "password:" {send "Wztisroot@2018\r"}
spawn ssh root@ -t "cd /root/test;java -jar /root/test/store-0.0.1-SNAPSHOT.jar;bash --login"
expect {
{send "yes\n";exp_continue}
{send "Wztisroot@2018\n"}




$ scp -i ~/.ssh/id_rsa*.derp .
假设你的私钥在 ~/.ssh/id_rsa


$ ssh-keygen -t rsa


可以试试 ps -ef查进程;

Csdn user default icon
linux:bash shell脚本中 scp命令传输文件。目标文件名称为 "?"

``` dispatch_so(){ MAPPING_FILE=$1 SRC_HOME=$2 for fn in ${folder_list[*]} do echo "=====" while IFS='=' read -r SRC TARGET USERS PASWD TARGETDIR do if [ "$SRC" = "$fn" ];then echo "scp ${SRC_HOME}/${SRC} ${USERS}@${TARGET}:${TARGETDIR}" scp ${SRC_HOME}/${SRC} ${USERS}@${TARGET}:${TARGETDIR} if [ $? = 0 ];then RES="success";else RES="failed";fi fi #echo "$MAPPING_FILE" done < ${MAPPING_FILE} if [ "$RES" = "success" ] then echo "succ===$fn" # echo "rm -rf ${PACK_HOME}/$fn" # rm -rf ${PACK_HOME}/$fn; fi done } ``` 将上述代码echo出的语句直接执行。可以成功将文件传输过去,且不会出现文件名为?的情况。 echo出来的命令为:scp /home/contin/packs/ cina@ 传输结果为:-rw-r--r-- 1 cina testd 240770 4月 11 15:37 ?

java 与 shell 交互有没有好的工具? java调用shell脚本,shell脚本执行过程中需要输入参数的那种?

**不只是简单的调用shell** **不只是简单的调用shell** **不只是简单的调用shell** ### 场景 Java 应用程序调用本地 shell 命令,shell 执行过程中,需要接受入参来进行后续的 shell 中的逻辑。 **脚本demo** ```shell #!/bin/sh echo "What's your name? : " read name echo "Hello $name!" echo "How old are you? :" read age echo "You are $age years old" ``` **我想要的效果** 我现在想用 java 去调用这样子一个脚本,并且希望可以通过 java 把 name 和 age 输入到 shell 中,然后获取到 shell 的输出结果。




问题描述: 场景:需要用一个c++模块调用一个shell脚本(实现自动scp功能) 问题:模块前台运行,文件能scp过去。如果模块后台运行ppid=1,scp的文件拷贝不过去。 脚本如下: #!/usr/bin/expect set timeout 30 set src [lindex $argv 0] set dest [lindex $argv 1] set passwd [lindex $argv 2] puts {+----------Log Info------------+} puts $src puts $dest puts $passwd puts {+------------------------------+} if {$argc == 4} { set port [lindex $argv 3] spawn bash -c "scp -r -P $port $src $dest" } else { spawn bash -c "scp -r $src $dest" } expect { "Are you sure you want to continue connecting (yes/no)?" { send "yes\n"; exp_continue; } "password:" { send "$passwd\n" puts "input passwd" } } interact 没有金币了,所以还望路过的同学,帮忙指点一下。谢谢!


什么情况下 hdfs 上传会比 scp 快?为什么? 百度 inf 面试题之一


#!/usr/bin/expect -f set IP [lindex $argv 0 ] spawn scp /root/.ssh/ root@${IP}:/root/.ssh/ expect { "Are you sure you want to continue connecting*" { send "yes\r"; exp_continue } 写了个脚本,大概是这样,但现在有个问题是,其中IP的值有脚本参数进行传递,例:./ 现在像是参数可以无限多,让IP遍历所有传进来的参数,分别执行之后的语句,有大神知道怎么来写吗,求教???

Go SSH服务器通过SCP接受文件传输

<div class="post-text" itemprop="text"> <p>I would like to create a server process with Go which can receive or send files via scp, like:</p> <pre><code>scp -P 2200 -i ssh/tester_rsa foo@localhost:/test output.txt </code></pre> <p>or</p> <pre><code>scp -P 2200 -i ssh/tester_rsa input.txt foo@localhost:/test </code></pre> <p>With help of <a href="" rel="nofollow noreferrer">this gist</a> I was already able to create an interactive ssh server which is able to accpet connections/commands via</p> <pre><code>ssh -i ssh/tester_rsa foo@localhost -p 2200 'somecommand' </code></pre> <p>and works nicely.</p> <p>I understood that the payload contains "scp -f /test" for the first shown scp request. I am stuck in how to return actual content from the server, I tried in replying with a string (as with a normal ssh reply) but I get no file back.</p> <p>Here my output of scp -vv</p> <pre><code>... debug2: callback done debug2: channel 0: open confirm rwindow 2097152 rmax 32768 debug2: channel_input_status_confirm: type 99 id 0 debug2: exec request accepted on channel 0 debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug2: channel 0: rcvd close debug2: channel 0: output open -&gt; drain debug2: channel 0: close_read ... </code></pre> <p>When I am trying with a propper server I get following lines</p> <pre><code>... debug2: exec request accepted on channel 0 debug2: channel 0: rcvd ext data 43 Sending file modes: C0644 98 output.txt debug2: channel 0: written 43 to efd 7 Sink: C0644 98 output.txt output.txt debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: client_input_channel_req: channel 0 rtype reply 0 debug2: channel 0: rcvd eow debug2: channel 0: close_read ... </code></pre> <p>So I guess I am missing some protocol / flow parameters or commands in Go.</p> <p>Only the snippet of Go Code, as project is huge and is not easy to copy and paste here:</p> <pre><code>func (a *Shell) handleExec(connection ssh.Channel, payload []byte) { ... for _, c := range a.ExecCmds { if matchCmds(str, c.Cmd) { connection.Write([]byte("Here comes the file content") } } ... </code></pre> <p>I know that the code is not right for scp, but it works fine for normal ssh. I don't know how to handle the connection, and what exactly to return so that a correct file transfer is done.</p> <p>Googling for a while led me to <a href="">this question on stack overflow</a> which is nearly the same but got not completely answered, as I am exactly looking for the part</p> <pre><code> runYourCommand(msg.Command, ch) </code></pre> <p>which I guess contains the logic :)</p> <p>Update: I am looking not for external ressources any more, I got some more input from <a href=";method=getOutputStream" rel="nofollow noreferrer">this java snippet</a></p> <p>It looks like they are emulating the scp protocol and I would perfectly be fine to have someone helping me to translate it to Go:</p> <pre><code> StringBuilder params = new StringBuilder("C0").append(perms); params.append(" ").append(data.length).append(" "); params.append(remoteFileName).append(" "); out.write(params.toString().getBytes()); out.flush(); if (!waitForInputStream(logger, in)) { cleanup(logger, out, channel); logger.log(Level.SEVERE, "Error before writing SCP bytes"); return UNKNOWN_ERROR; /* TODO: Improve */ } out.write(data); out.write(new byte[]{0}, 0, 1); out.flush(); </code></pre> <p>I tried this so far, but didn't help</p> <pre><code>o:="Some content of a faked file" connection.Write([]byte("C0644 "+string(len(o))+"test.txt ")) connection.Write([]byte(o)) connection.Write([]byte{0,0,1}) </code></pre> <p>To clarify: I would not like to serve a real file, rather then Go simulating a file delivery over scp (using a string as the content of the file).</p> <p>Thanks in advance!</p> </div>


#!/bin/bash if [ -z $1 ] then echo error exit 1 fi while read n do duankou=$(($n + 60000)) scp -o "StrictHostKeyChecking no" -P $duankou ~/Desktop/qingyunwenjian2.0 root@$1:~ ssh -o "StrictHostKeyChecking no" -p $duankou root@$1 bash ~/qingyunwenjian2.0 host${n} $n echo success$n done < ~/Desktop/hostlist 执行结果 [root@localhost Desktop]# bash qingyunwenjian2.0 100% 875 0.9KB/s 00:00 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: * extras: * updates: Package net-tools-2.0-0.17.20131004git.el7.x86_64 already installed and latest version Package 2:vim-enhanced-7.4.160-1.el7_3.1.x86_64 already installed and latest version Nothing to do Connection to closed by remote host. success2 [root@localhost Desktop]#


我在java代码中执行shell命令改变Android目录下的文件123.sh的权限, 使用Runtime.getRuntime().exec("chmod 777 /data/misc/")这个命令无效, 但是,我将chmod 777 /data/misc/123.sh这个命令写到脚本chmod.sh里,在PC机上改变chmod.sh的权限后使用adb push将其放到android目录/data/misc/下, 再使用Runtime.getRuntime().exec("su -c ./data/misc/")执行就可以,请问问题出在哪里了呢?


<div class="post-text" itemprop="text"> <p>I want to run a local shell script that have SSH commands on the server using PHP. And inside the script i am using <code>ssh</code> to run a command like <code>ls -lart</code> and save the result on a log file in the server, and then using <code>scp</code> to copy the remote file to my local host. Something like this:<br></p> <pre><code>/// #!/bin/bash host=$1 user=$2 port=$3 ssh -p $port $user@$host 'ls -lart &gt;&gt; /home/remote/file.log' scp -P $port $user@$host:/home/remote/file.log /home/local/file.log </code></pre> <p>If i run the script using the terminal <code>user@local_host:~$ ./</code> everything works just fine. But if i use <code>shell_exec()</code> to execute the script using PHP like this:</p> <pre><code>/// index.php $output = shell_exec(" root 2222"); echo &lt;pre&gt;$output&lt;/pre&gt;; </code></pre> <p>Nothing is printed on screen and the SSH commands inside the file are not executed.<br><br> I know I can use <code>ssh2_shell()</code>, but by using it I would have to send the commands inside the PHP, and it's not what i want.<br> I already gave the permissions needed to <code>index.php</code> and <code></code><br><br></p> <p>Any ideas how I can do this?</p> </div>


从linux中scp到 cygwn时,时有发生卡在100%的问题 通过查看进程信息,得知client与server端的ssh连接未关闭; 有个方向: 通过查看成功scp文件的strace信息,发现一般read 数据大小为16324、49152,这些都是1024的倍数。 而scp失败的情况下,出现了read 32767(32768=1024*32).同时在网上查到,如果文件里出现'\0'会发生pipe end的情况。 所以猜想文件传输过程中是不是有'\0'。这里有很多漏洞,强行猜想的吧。scp失败的文件,多scp几次可以成功。。。。。 各错误代码的具体信息为: Windows Error 109 : ERROR_BROKEN_PIPE: The pipe has been ended. Windows Error 232 : ERROR_NO_DATA: The pipe is being closed. 以下分别是client、server端的strace信息: client: write(6, "\350\264\267\346\254\276\345\210\227\350\241\250\0012016-01-06 08:36:08"..., 16384) = 16384 read(3, "88-4422-919e-edb4ae22b058\001827207"..., 15710) = 15710 write(6, "88-4422-919e-edb4ae22b058\001827207"..., 15710) = 15710 fcntl(6, F_GETFL) = 0x801 (flags O_WRONLY|O_NONBLOCK) fcntl(6, F_SETFL, O_WRONLY) = 0 alarm(0) = 1 getpgrp() = 45147 ioctl(1, TIOCGPGRP, [45147]) = 0 write(1, "\rTD_APP_EVENT_20160106.txt "..., 211) = 211 write(1, "\n", 1) = 1 close(3) = 0 write(6, "\0", 1) = 1 read(7, server: 51 479824835 [main] scp 4564 peek_pipe: /dev/fd/pipe:[6], already ready for read 44 479824879 [main] scp 4564 set_bits: me 0x80049C38, testing fd 0 (/dev/fd/pipe:[6]) 43 479824922 [main] scp 4564 set_bits: ready 1 43 479824965 [main] scp 4564 select_stuff::cleanup: calling cleanup routines 139 479825104 [main] scp 4564 select_stuff::destroy: deleting select records 81 479825185 [main] scp 4564 select_stuff::cleanup: calling cleanup routines 46 479825231 [main] scp 4564 select_stuff::destroy: deleting select records 66 479825297 [main] scp 4564 cygwin_select: 1 = select(1, 0x28A210, 0x28A1F0, 0x28A1D0, 0x0) 64 479825361 [main] scp 4564 read: read(0, 0x8003D98F, 32767) nonblocking 81 479825442 [main] scp 4564 fhandler_base_overlapped::wait_overlapped: EOF, Win32 error 109 50 479825492 [main] scp 4564 fhandler_base::read: returning 0, binary mode 10984 479836476 [main] scp 4564 read: 0 = read(0, 0x8003D98F, 32767) 53 479836529 [main] scp 4564 read: read(0, 0x8003D98F, 32767) nonblocking 61 479836590 [main] scp 4564 fhandler_base_overlapped::wait_overlapped: EOF, Win32 error 109 46 479836636 [main] scp 4564 fhandler_base::read: returning 0, binary mode 57 479836693 [main] scp 4564 read: 0 = read(0, 0x8003D98F, 32767) 58 479836751 [main] scp 4564 fcntl64: fcntl(1, 3, ...) 73 479836824 [main] scp 4564 fhandler_base::fcntl: GETFL: 0x10001 46 479836870 [main] scp 4564 fcntl64: 65537 = fcntl(1, 3, 0x0) 8294 479845164 [main] scp 4564 _cygwin_istext_for_stdio: fd 1: opened as binary 530 479845694 [main] scp 4564 time: 1452148171 = time(0x0) 48 479845742 [main] scp 4564 fstat64: 0 = fstat(1, 0x28A180) 1826 479847568 [main] scp 4564 fhandler_base_overlapped::wait_overlapped: res 4, Win32 Error 232 79 479847647 [main] scp 4564 seterrno_from_win_error: /home/corinna/src/cygwin/cygwin-1.7.32/cygwin-1.7.32-1.i686/src/src/winsup/cygwin/ windows error 232 84 479847731 [main] scp 4564 geterrno_from_win_error: windows error 232 == errno 32 70 479847801 [main] scp 4564 kill0: kill (4564, 13) 50 479847851 [main] scp 4564 sig_send: sendsig 0xA0, pid 4564, signal 13, its_me 1 48 479847899 [main] scp 4564 sig_send: wakeup 0x11C 133 479848032 [sig] scp 4564 sigpacket::process: signal 13 processing 64 479848096 [sig] scp 4564 init_cygheap::find_tls: sig 13 59 479848155 [sig] scp 4564 sigpacket::process: using tls 0x28CE64 93 479848248 [sig] scp 4564 sigpacket::process: signal 13, signal handler 0x6102F600 43 479848291 [sig] scp 4564 sigpacket::setup_handler: controlled interrupt. stackptr 0x28DB5C, stack 0x28DB58, stackptr[-1] 0x401E1B 51 479848342 [sig] scp 4564 proc_subproc: args: 5, 1 39 479848381 [sig] scp 4564 proc_subproc: clear waiting threads 60 479848441 [sig] scp 4564 proc_subproc: finished clearing 40 479848481 [sig] scp 4564 proc_subproc: returning 1 92 479848573 [sig] scp 4564 _cygtls::interrupt_setup: armed signal_arrived 0x100, signal 13 41 479848614 [sig] scp 4564 sigpacket::setup_handler: signal 13 delivered 62 479848676 [sig] scp 4564 sigpacket::process: returning 1 54 479848730 [sig] scp 4564 wait_sig: signalling pack.wakeup 0x11C 94 479848824 [main] scp 4564 sig_send: Waiting for pack.wakeup 0x11C 53 479848877 [main] scp 4564 set_process_mask_delta: oldmask 0, newmask 0, deltamask 0 90 479848967 [main] scp 4564 signal_exit: exiting due to signal 13 65 479849032 [main] scp 4564 signal_exit: about to call do_exit (D) 48 479849080 [main] scp 4564 do_exit: do_exit (13), exit_state 2 41 479849121 [main] scp 4564 void: 0x0 = signal (20, 0x1) 38 479849159 [main] scp 4564 void: 0x0 = signal (1, 0x1) 37 479849196 [main] scp 4564 void: 0x0 = signal (2, 0x1) 37 479849233 [main] scp 4564 void: 0x0 = signal (3, 0x1) 77 479849310 [main] scp 4564 fhandler_base::close: closing '/dev/fd/pipe:[6]' handle 0x1BC 61 479849371 [main] scp 4564 fhandler_base::close: closing 'pipe:[9]' handle 0x264 56 479849427 [main] scp 4564 fhandler_base::close: closing 'pipe:[11]' handle 0x268 82 479849509 [main] scp 4564 fhandler_base::close: closing '/sftphome/jk_sftp/talkingdata/TD_APP_EVENT/20160106/TD_APP_EVENT_20160106.txt' handle 0x104 219 479849728 [main] scp 4564 getpid: 4564 = getpid() 68 479849796 [main] scp 4564 proc_terminate: nprocs 0 44 479849840 [main] scp 4564 proc_terminate: leaving 45 479849885 [main] scp 4564 pinfo::exit: Calling ExitProcess n 0xD, exitcode 0xD




使用java来执行scp命令,但是中间要输入远程主机的密码,要怎么处理才能让命令顺利执行不中断呢? [b]问题补充:[/b] 能说的具体点么?linux我还不太熟悉,最好能贴个代码过来看看,谢谢!


<div class="post-text" itemprop="text"> <p>I am trying to design a Backup Manager for myself. I was able to list all the files successfully. Now i want to create a link called <strong>Migrate</strong> which when clicked executes a Shell commands and migrate the file to another server using SCP. I tried manually running other commands but only SCP was able to transfer the file successfully. But with SCP, we don't have option to enter password. </p> <p>sshpass also doesn't seems to work.</p> <p>I also tried the following code by creating text.exe file and running it using expect but thats also dint work:</p> <pre><code>#!/usr/bin/expect spawn scp username@host:destination set pass "password" expect { "*password:*" {send "$pass "; exp_continue} } </code></pre> <p>Please provide a solution for this.</p> <p>Further, I want to send the using post as the name of the file is defined by phpfunction $file_name. </p> <p>How do i send $file_name using post or anyother method to this test.exe file? so that the following line looks like:</p> <p>spawn scp username@host:destination</p> <p>Thank you!</p> </div>

Linux ssh 连接问题 scp

[ruanzhen1@m01 ~]$ cat /etc/hosts localhosts localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhosts localhost.localdomain localhost6 localhost6.localdomain6 lb01 lb02 web02 web01 db01 nfs01 backup m01 [ruanzhen1@m01 ~]$ scp -P52112 hosts ruanzhen1@ hosts: No such file or directory 改为[ruanzhen1@m01 ~]$ scp -P52112 ~/hosts ruanzhen1@ 仍然是hosts: No such file or directory 怎么解决啊?


<div class="post-text" itemprop="text"> <p>I spent 3 hours googling for working SCP implementation in Go</p> <p>I can't find any working lib or example.</p> <p>This gist is not working. It is buggy but listed in some answers as working code. <a href="" rel="nofollow"></a></p> </div>

使用crypto / ssh的golang scp文件

<div class="post-text" itemprop="text"> <p>I'm trying to download a remote file over ssh The following approach works fine on shell</p> <pre><code>ssh hostname "tar cz /opt/local/folder" &gt; folder.tar.gz </code></pre> <p>However the same approach on golang giving some difference in output artifact size. For example the same folders with pure shell produce artifact gz file 179B and same with go script 178B. I assume that something has been missed from io.Reader or session got closed earlier. Kindly ask you guys to help.</p> <p>Here is the example of my script:</p> <pre><code>func executeCmd(cmd, hostname string, config *ssh.ClientConfig, path string) error { conn, _ := ssh.Dial("tcp", hostname+":22", config) session, err := conn.NewSession() if err != nil { panic("Failed to create session: " + err.Error()) } r, _ := session.StdoutPipe() scanner := bufio.NewScanner(r) go func() { defer session.Close() name := fmt.Sprintf("%s/backup_folder_%v.tar.gz", path, time.Now().Unix()) file, err := os.OpenFile(name, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0644) if err != nil { panic(err) } defer file.Close() for scanner.Scan() { fmt.Println(scanner.Bytes()) if err := scanner.Err(); err != nil { fmt.Println(err) } if _, err = file.Write(scanner.Bytes()); err != nil { log.Fatal(err) } } }() if err := session.Run(cmd); err != nil { fmt.Println(err.Error()) panic("Failed to run: " + err.Error()) } return nil } </code></pre> <p>Thanks!</p> </div>


PNG_SUFFIX="png" JSON_SUFFIX="json" echo $1 filelist=`ls $1` for file in $filelist do [[ $file == *$PNG_SUFFIX ]] && scp $file root@ [[ $file == *$JSON_SUFFIX ]] && scp $file root@ done 我用这个脚本上传了N张PNG的图片后,现在想写另一个脚本验证这些图片是否上传成功.请问具体怎么写。


<div class="post-text" itemprop="text"> <p>I am making use of php ssh2_scp_send to transfer files to the remote machine, but it is a bit weird, it works for the first time but fails my second call with the following error</p> <pre><code>//success for file transfer if (!(ssh2_scp_send($this-&gt;conn, $lpath, $rpath, 0777))){ throw new Exception("File transfer failed!"); } ssh2_exec($this-&gt;conn, 'exit'); //fail this time if (!(ssh2_scp_send($this-&gt;conn, $lpath, $rpath, 0777))){ throw new Exception("File transfer failed!"); } ssh2_exec($this-&gt;conn, 'exit') </code></pre> <p>"Warning: ssh2_scp_send(): Failed copying file in /var/www/trunk/rsetting/class/ssh.class.php on line 57"</p> <p>Any help will be appreciated~Thanks</p> </div>


大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...


今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...


文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...



String s = new String(" a ") 到底产生几个对象?

老生常谈的一个梗,到2020了还在争论,你们一天天的,哎哎哎,我不是针对你一个,我是说在座的各位都是人才! 上图红色的这3个箭头,对于通过new产生一个字符串(”宜春”)时,会先去常量池中查找是否已经有了”宜春”对象,如果没有则在常量池中创建一个此字符串对象,然后堆中再创建一个常量池中此”宜春”对象的拷贝对象。 也就是说准确答案是产生了一个或两个对象,如果常量池中原来没有 ”宜春” ,就是两个。...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...


文章目录Linux 概述什么是LinuxUnix和Linux有什么区别?什么是 Linux 内核?Linux的基本组件是什么?Linux 的体系结构BASH和DOS之间的基本区别是什么?Linux 开机启动过程?Linux系统缺省的运行级别?Linux 使用的进程间通信方式?Linux 有哪些系统日志文件?Linux系统安装多个桌面环境有帮助吗?什么是交换空间?什么是root帐户什么是LILO?什...


大家都知道,Linux 系统有非常多的命令,而且每个命令又有非常多的用法,想要全部记住所有命令的所有用法,恐怕是一件不可能完成的任务。 一般情况下,我们学习一个命令时,要么直接百度去搜索它的用法,要么就直接用 man 命令去查看守冗长的帮助手册。这两个都可以实现我们的目标,但有没有更简便的方式呢? 答案是必须有的!今天给大家推荐一款有趣而实用学习神器 — kmdr,让你解锁 Linux 学习新姿势...

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

史上最全的 python 基础知识汇总篇,没有比这再全面的了,建议收藏



loonggg读完需要3分钟速读仅需 1 分钟大家好,我是你们的校长。我之前讲过,这年头,只要肯动脑,肯行动,程序员凭借自己的技术,赚钱的方式还是有很多种的。仅仅靠在公司出卖自己的劳动时...




蒋凡是何许人也? 2017年12月27日,在入职4年时间里,蒋凡开挂般坐上了淘宝总裁位置。 为此,时任阿里CEO张勇在任命书中力赞: 蒋凡加入阿里,始终保持创业者的冲劲,有敏锐的...

总结了 150 余个神奇网站,你不来瞅瞅吗?



提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...




关注、星标公众号,不错过精彩内容作者:黄工公众号:strongerHuang最近ST官网悄悄新上线了一款比较强大的工具:STM32CubeMonitor V1.0.0。经过我研究和使用之...




私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...



离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...


不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...






当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...





面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?





已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...