Ποια είναι η εμπειρία σας με την κονσόλα στο Linux; Μπορείτε να δώσετε παραδείγματα εντολών και ρυθμίσεων δικαιωμάτων;
sobes.tech AI
Απάντηση από AI
More than N (indicate your actual experience) years in various distributions (Ubuntu, CentOS, Debian, Alpine). I freely use 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 with
vim:vim <file_name>
Configuring access permissions:
-
Using
chmodto 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
chownto change the owner of a file or directory:chown <new_owner>:<new_group> <file_or_directory_name> -
Setting Access Control Lists (ACLs) with
setfaclandgetfaclfor more granular permission management:setfacl -m u:<username>:rwx <file_name> # Grant user read, write, execute permissions getfacl <file_name> # View file ACL
I regularly use pipelines (|), input/output redirection (>, >>, <) and have studied and applied more advanced utilities like awk, sed, and scripting in bash for deployment, monitoring, and administration automation.