How To Find a File In Linux From the Command Line
Viewed 1216 times since Sun, Jul 31, 2022
Locate Linux Files by Their Name or Extension Type find into the command line to track down a particular file by its name or extension. If you want to look for *.err files in the /home/username/ directory and all sub-directories, try...
Read More
Tell yum to ignore a single dependency - nodeps
Viewed 1646 times since Thu, Feb 2, 2023
Generally yum doesn't have options to ignore a single package from the dependencies. Option --skip-broken ignores all unresolved dependences. You can try yum --exclude=packagename but it excludes a specific package...
Read More
How to Exclude Specific Packages from Yum Update #2
Viewed 1363 times since Wed, Nov 8, 2023
1. Exclude Packages with Command # yum update --exclude=kernel* --exclude=php* 2. Exclude Packages from Auto Update [main]cachedir=/var/cache/yum/$basearch/$releaseverkeepcache=0debuglevel=2logfile=/var/log/yum.logexactarch=1obsoletes...
Read More
How to remove all files starting with a certain string in Linux
Viewed 1258 times since Wed, Feb 1, 2023
To delete all files which name has name, you can use it: find . -name 'name*' -exec rm {} \;
Read More
Internet Speed Test in Linux
Viewed 571 times since Thu, Oct 8, 2020
Copy "speedtest" -bash attached to /usr/bin and change it permission to X command: $ sudo speedtest Ref: Navel.ir
Read More
Add cron jobs directly to Scheduled Cron Jobs
Viewed 541 times since Tue, Jul 19, 2022
if you like working with VIM, then you know you can manually add them.Open the crontab in edit mode (crontab -e) add the cron jobs and save, that's all.
Read More
How to Get the Size of a Directory in Linux
Viewed 508 times since Tue, Sep 1, 2020
# sudo du -shc /var/* Source: https://linuxize.com/post/how-get-size-of-file-directory-linux/
Read More
How do I find all files containing specific text on Linux?
Viewed 499 times since Mon, Jan 17, 2022
~]# grep -rnw '/path/to/somewhere/' -e 'pattern'Ref:https://stackoverflow.com/questions/16956810/how-do-i-find-all-files-containing-specific-text-on-linux
Read More
’Argument list too long’ error while copying a large number of files
Viewed 491 times since Tue, Sep 1, 2020
find public_html/images/uploads/ -name "*.*" -exec cp -uf "{}" /home/[root]/domains/new.folder.com/public_html/uploads/images/ \; Source: https://serverfault.com/questions/56068/argument-list-too-long-error-while-copying-a-large-number-of...
Read More
How To Extract .tar.gz Files using Linux Command Line
Viewed 415 times since Sun, Sep 6, 2020
Extracting .tar.gz files $ tar xvzf file.tar.gz Source: https://www.interserver.net/tips/kb/extract-tar-gz-files-using-linux-command-line/
Read More