Skip to content

Instantly share code, notes, and snippets.

@toto-castaldi
Last active March 13, 2017 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toto-castaldi/4043682163992344733f to your computer and use it in GitHub Desktop.
Save toto-castaldi/4043682163992344733f to your computer and use it in GitHub Desktop.
linux.notes.txt
//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