Sobes.tech
Junior

What is your experience with the Linux console? Can you give examples of commands and access rights configuration?

sobes.tech AI

Answer from AI

More than N (please specify your actual experience) years in various distributions (Ubuntu, CentOS, Debian, Alpine). Proficient in using standard utilities and scripts for automation.

Examples of commands:

  • Viewing process information:

    ps aux | grep <process_name>
    
  • Checking disk space usage:

    df -h
    
  • Downloading a file:

    wget <file_URL>
    
  • Extracting an archive:

    tar -xzf <archive_name.tar.gz>
    
  • Editing a file using vim:

    vim <file_name>
    

Setting permissions:

  • Using chmod to change permissions (owner, group, others; read, write, execute):

    chmod 755 <file_or_directory_name> # Owner: read, write, execute; Group: read, execute; Others: read, execute
    chmod +x <script_name> # Add execute permission for all
    
  • Using chown to change file or directory owner:

    chown <new_owner>:<new_group> <file_or_directory_name>
    
  • Configuring access control lists (ACLs) with setfacl and getfacl for more granular permission management:

    setfacl -m u:<username>:rwx <file_name> # Grant user read, write, execute permissions
    getfacl <file_name> # View file ACL
    

Regularly using pipelines (|), input/output redirection (>, >>, <), and exploring and applying more advanced utilities like awk, sed, and scripting in bash for automation of deployment, monitoring, and administration tasks.