-user – Search for files assigned to a specific user.
-dimensione – The size of the file
-tipo -d – Search for a directory type
-type -f– Search for a file type
Finally, you can enter the desired search term. Suppose we want to find a file called 'task' in the directory.
1
find / -name "task"
Bonus Tip: Other Useful SSH Commands
Now that you know some basic SSH commands for navigating and managing files and folders on your site, here are some additional commands you should know.
10. zip – Compress a folder
If you want to compress large files or folders, you can use the zip command . All you have to do is include the name of the file or folder you want to compress:
1
zip filename.zip foldername
With this command you can also use different parameters to specify whether you want to delete the original folder:
zip -r filename.zip foldername– Compresses a folder but does not delete it.
zip -m filename.zip foldername– This parameter allows you to compress a folder and then delete it, leaving only the zipped version.
zip -d filename.zip foldername– Allows you to delete a file from the existing zip archive.
zip -u filename.zip foldername– This updates a file within an existing zip archive. This is useful if you have updated the original file and do not want to delete the zip file or create a new one.
11. unzip – Unzip a folder
After zipping a folder, you need to unzip it. To do this, simply enter the unzip SSH command:
1
unzip [filename.zip]
12. history – Displays the last command used.
The SSH history command is useful for determining which command was previously argentina telemarketing data entered. Be sure to enter a number to limit the results displayed.
For example, suppose we want to see the last 10 commands used. The syntax of the history command is as follows:
1
history 10
History SSH command
13. tar – Creating and unpacking compressed archives
tar is a popular SSH command used to unpack .tar.gz. There are many third-party tools that use this format to compress files and it is an alternative to zip files.
The SSH command for this would be?
-
- Posts: 177
- Joined: Sat Dec 21, 2024 5:57 am