Basic FAQ for Linux Users

1. How do I log in to a remote server using SSH?

Command:

ssh username@hostname 

Explanation:

2. How do I run graphical applications over SSH?

Command:

ssh -X username@hostname 

Explanation:

3. How do I copy files from my local machine to a remote server using SCP?

Command:

scp /path/to/local/file username@hostname:/path/to/remote/directory 

Explanation:

4. How do I copy files from a remote server to my local machine using SCP?

Command:

scp username@hostname:/path/to/remote/file /path/to/local/directory 

Explanation:

5. How do I synchronize directories between my local machine and a remote server using Rsync?

Command to sync local to remote:

rsync -avz /path/to/local/directory username@hostname:/path/to/remote/directory 

Command to sync remote to local:

rsync -avz username@hostname:/path/to/remote/directory /path/to/local/directory 

Explanation:

6. How do I check the disk space usage of a directory?

Command:

du -sh /path/to/directory

Explanation:

7. How do I check the available disk space on the file system?

Command:

df -h

Explanation:

8. How do I find a specific file in my file system?

Command:

find /path/to/search -name "filename"

Explanation:

9. How do I display the contents of a text file?

Command:

cat /path/to/file

Explanation:

10. How do I monitor real-time system processes?

Command:

top 

Explanation:


Revision #2
Created 17 July 2024 05:05:43 by Ratna Kumar Bollapragada
Updated 17 July 2024 05:08:33 by Ratna Kumar Bollapragada