SYS 255 ‐ Extra Linux commands - connor0329/repository-1 GitHub Wiki

Rocky Os (Linux) command

cp - copies files or directories from one location to another

  • EX: cp /etc/hosts /home/connor/sys255/assignment

tree - displays a directory structure in a tree-like structure

  • EX: tree /home/connor

yum install - installs a software package on Linux systems that use the YUM package manager (like CentOS or Rocky Linux)

  • EX: sudo yum install vim

cat - displays the contents of a file or concatenates multiple files

  • EX: cat /etc/passwd

useradd - creates a new user account on the system

  • EX: useradd connor

passwd - used to change or add a user password

  • EX: passwd connor

grep - searches for a specific pattern or text in a files or output

  • EX: cat /etc/passwd | grep connor

man - displays the manual or help pages for a specific command

  • EX: man tree

who - shows a list of all users currently logged into the system

  • EX: who