- Change to root (on Ubuntu): sudo -i
- uname -r
- sudo apt update && sudo apt upgrade
- Show processes whose name contains a specific string: ps -ef | grep <string>
- Forcefully kill process: pkill -f <process name>
- Example: pkill -f update-notifier
- Run process in background: ./<process name> &
- Show network card info: ifconfig
- Show resource usage of running processes: top, htop
- Reverse-i-search with ctrl+r
- Change MAC address: sudo ifconfig enp2s0 hw ether 64:00:6a:28:fa:ac
- Ubuntu: Allow GUI root login
- Enable SSH to root user by adding the line PermitRootLogin yes to /etc/ssh/sshd_config
- Enable receiving UDP packets
- Disable firewall completely: sudo ufw disable
- Or you can allow for example on port 5000: sudo ufw allow from any to any port 5000 proto udp
- Create image of USB with size of 8GB: dd if=/dev/sdb of=/home/myimage.img bs=1G count=8 status=progress
Tools:
- sudo apt install net-tools
- sudo apt install build-essential
- gcc --version
- make --version
- Eclipse IDE for C++
- In a project, when you remove a folder and copy another version of the same folder but with fewer files, during build, you might get the error "No rule to make target…". Right click on the project and select refresh, this rebuilds the index. Now you can build successfully.
- To use psftp from another Windows computer for file transfer: sudo apt install openssh-server
- sudo apt install rt-tests
- Sample usage: cyclictest l100000 -t 8 p95
- sudo apt install htop
- For remote connection from Windows:
- sudo apt install xrdp
- sudo systemctl restart xrdp
- Note that you have to be logged out from Ubuntu for remote from Windows to work.
No comments:
Post a Comment