Cyre

Ejercicios sobre ordenes ASO

Oct 11th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.70 KB | None | 0 0
  1. 1.- cut -d : -f 1 /etc/passwd | sort
  2. 2.- cut -d : -f 1 /etc/passwd | grep [A-Z]
  3. 3.- cut -d : -f 4 /etc/passwd | uniq -d
  4. 4.- cut -d # -f 1 /etc/inittab
  5. 5.- "lectura del archivo" | tr [:blank:] '\n' | sort | grep -c "palabra"
  6. 6.- cut -d : -f 7 /etc/passwd | sort | uniq | wc -l
  7. 7.- cut -d : -f 3 /etc/passwd | sort -n | uniq -d
  8. 8.- find /dev \( -type c -o -type d \) -print | wc -l
  9. 9.- ps -e | grep -c gnome
  10. 10.- ps -eo time,pid,uname | sort -n -r | grep luis || ps -u "Nombre de usuario" -o time,pid | sort -nr
  11. 11.- find / ! -user root ! -group 0 -size 1M
  12. 12.- find / -user luis -atime -7
  13. 13.- find /home -user luis -exec chown juan {} \;
  14. 14.- find . -user luis -name \*.ksh -exec cat {} \; > mis_scripts.ksh
Add Comment
Please, Sign In to add comment