ict.ken.be
Linux commandline
Categories
.Net
(22)
Android
(1)
Angularjs
(2)
Azure
(5)
BitCoin
(1)
CSS
(4)
Docker
(2)
EF
(6)
Gatsbyjs
(1)
Git
(5)
GraphQL
(2)
HTML
(5)
IIS
(12)
Javascript
(17)
Kubernetes
(2)
Linq
(1)
Linux
(5)
Mercurial
(6)
Messagent
(17)
Mobile
(4)
mojoPortal
(2)
Network
(14)
Nodejs
(7)
Notes
(23)
Patterns
(8)
Reactjs
(3)
Red5
(1)
RegEx
(1)
Security
(12)
Shortcuts
(5)
SQL Server
(23)
Testing
(10)
Visual Code / VSCode
(1)
Visual Studio
(16)
WebApi
(7)
Windows
(19)
Related Posts
vi
Remove or hide old linux kernel versions from boot menu
Asus eee PC as router
Puppy Linux
Categories:
Linux
Previous Post <<
>> Next Post
Bash
clear
: empty console
ls -soah
: show file details
cat filename
: show content inline
less filename
: show content in scrollable way
rm -I glob
: remove but confirm once
mkdir -p
: create new folder, ignore if exits
top
: show processes
htop
: show processes with colors
pstree -p
: show which process contains what other process by id
kill processid
: terminate process
df -h
: show diskspace
reboot
: restart the system
lsof -i
: list open ipv[46] files by process
netstat -tulpn
: display listening sockets
nmap -v 192.168.1.1
: find open ports on gateway
nc
: networking tool - seeĀ
https://en.wikipedia.org/wiki/Netcat
dmesg | grep -iC 3 "search item"
: find in debug messages
curl -L ken.be
: show website content inline and follow redirects
who
: currently logged in users
whoami
: user that run this command
passwd -Sa
: show status of all accounts
groupadd groupname
: create new group
useradd -m -g groupname username
: create home, add user and assign groupĀ
find / -group groupname
: find files owned by group
find / -user username
: find files owned by user
stat -c %U /var/motion/cam1
: show who ownes the folder
sudo -u username somecommand
: elevate permissions for command
chown video:video /var/whatever
: change file ownership
chmod 755 /var/whatever
: change file permissions
chmod +x
script.sh : add execute permissions to script file
Previous Post <<
>> Next Post