Paste #270530

   
pasted on 23.08.2023 14:56
  • Edit to this paste
  • Print
  • Raw
  • Compare with paste
    #  
  • Toggle line numbers
  • Syntax highlighting  
Text paste
1
2
3
4
5
6
7
8
9
#!/bin/bash

# List system accounts
echo "System accounts:"
cut -d: -f1 /etc/passwd | grep -E '^[^[:lower:]]'

# List user accounts
echo "User accounts:"
cut -d: -f1 /etc/passwd | grep -E '^[[:lower:]]'
Add Comment
Author