Essential Linux Commands & File System Structure
Classified in Computers
Written at on English with a size of 7.16 KB.
Linux File System Structure: An archive of Linux is associated with 3 parts: superblock, inode table, and data blocks.
Network Ports: To see the ports assigned to services.
Display Active TCP/IP Connections: netstat -a
User Management:
- Create password:
passwd (user)
- Add user to group:
usermod -g group_name
- Disable:
60001
- Enable:
60002
Practical Commands:
Add User: adduser
- Change folder privileges:
chmod
- Check privileges:
ls -de
(see if you changed privileges)
- Create a user:
useradd newuser
passwd newuser
- Create a directory: The command
mkdir
is used to create directories:mkdir mydirectory
- Create a report:
ps -aux >> reporte.txt
- Directories associated with the user:
-d dirname
- Changing permission:
chmod 744 file.txt /file.txt
- Change owner:
chown
Entering