Last active
March 13, 2017 15:20
-
-
Save toto-castaldi/4043682163992344733f to your computer and use it in GitHub Desktop.
linux.notes.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//WICH VIDEO DRIVER I'M USING | |
> sudo lshw -c video | |
//WICH KERNEL I'M USING | |
> uname -r | |
> uname -a | |
//SED | |
> sed -i 's/8080/8181/g' /apache-tomcat-7.0.39/conf/server.xml | |
//READ -> WGET | |
> while read p; do wget http://localhost:8080/ctx$p; done </path/to/urls.csv | |
//CLEAR A LOG DURING EXECUTION | |
> truncate -S 0 /path/to/file.txt | |
//BACKGROUND AND REDIRECT OUTPUTS | |
> nohup [command] > cmd.out 2>&1& |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment