SUBJECTS } LINUX } Linux/Unix useful commands
Sept 6, 2023.
1: List the files/directories, try: ls -lrt
2: Compress folders, try: tar -zcvf /home/folder.tar.gz /home/folder
3. Secure copy from remote server to local, try: scp user_name@ip_address:/home/folder/file /local_dir/copied_files/
4. Secure copy from local to remote server, try: scp /local_dir/file user_name@ip_address:/home/folder/
5. Disk usage, try: du -sh /home/folder/*
6. Disk usage with sorting of output, try: du -sh /home/folder/* | sort -h
7. Centos7, check mariadb database status: service mariadb status
Please leave a short message for errors, comments or anything else: hr@Leprofesseur.org