Linux annoying setup commands
    Posted on February  1, 2015
    
    
    Tags: hacksoft
    
nano /etc/network/interfaces/etc/resolv.whoami
find -name something.txt
grep “bleh” somethin.txt
echo “a” && echo “b”
&
find -name something.txt &
runs find in the background
Output redirection - Overwrite > echo “hello” > bleh.txt echo “hey” > bleh.txt bleh.txt will only contain “hey”
Output redirection - Append >> echo “hello” > bleh.txt echo “hey” > bleh.txt bleh.txt will contain “hellohey”
0.0.0.0.1 Checking open ports
netstat -lntu
ss -lntu0.0.1 Files
All your header files or “.h” files will be inside /usr/include
find /usr -name libc-header-start.h  0.0.2 Setup code-server
~/.config/code-server/config.yaml
CONVERT FROM THIS
bind-addr: 127.0.0.1:8080
auth: password
password: idsjawij2382ruqfo
cert: falseTO
bind-addr: 0.0.0.0:8080
auth: password
password: root
cert: falseIn linux 127.0.0.1 means localhost but doesn’t allow access from LAN
0.0.0.0 allows access from LAN
run code-server instead of sudo code-server because the latter will assume root’s config.yaml.
0.0.3 Accessing Linux webpages from LAN
- linux hakyll webserver to listen on 127.0.0.1:8000
- LAN can’t access server without linux first running sysctl -w net.ipv4.conf.eth0.route_localnet=1