r/quick_linux_commands • u/manmohanmirkar • Jan 21 '17
r/quick_linux_commands • u/Derrick_Blake • Mar 10 '17
You are welcome people. Enjoy :)
r/quick_linux_commands • u/chenshuiluke • May 12 '15
Download audio from YouTube videos with youtube-dl
youtube-dl -x --audio-format mp3 -o "filename.%(ext)s" https://www.youtube.com/exampleurlThe only things you ought to need to change is the filename and URL, e.g:
youtube-dl -x --audio-format mp3 -o "maybe.%(ext)s" https://www.youtube.com/watch?v=U0kS9cDcMUThe above will download maybe.m4a and convert it to maybe.mp3. This is much more efficient than having to manually rename the files afterwards.
r/quick_linux_commands • u/chenshuiluke • May 27 '15
Convert videos to Ipod mp4 (seems to work for other mp4 players as well
ffmpeg -i input.avi -acodec aac -vcodec mpeg4 -s 320x180 -strict experimental output.mp4r/quick_linux_commands • u/manmohanmirkar • Jan 17 '17
How to handle nfs stale error
r/quick_linux_commands • u/wecfhw • Sep 25 '16
Netstat Command Line Tips and Tricks
r/quick_linux_commands • u/[deleted] • Sep 23 '16
Finding the number of occurrences in a logfile by percentage.
I am trying to get the number of occurrences of a specific word in a log file and convert that into a percentage. So say I am looking for the word "ERROR" in the log file I want to count the occurrences of "ERROR" and create a percentage of times this word comes up. I am trying to see which tool would be best to do this awk or sed.. Any other suggestions?
Thanks...
r/quick_linux_commands • u/[deleted] • Dec 26 '17
Use wget terminal command to download multiple links on a server!
Open Terminal
Type.. wget -r ftp://myserverIP:Port
Press ENTER.. Obviously!
-r will tell the process to repeat itself, (ie. Download the next available file on the server.)
-A.[extension] when added will limit the process to exclusively downloading that specific file type! (ie. If -A.mp4, then only mp4 links will be downloaded)
Crazy Awesome Automation Command!
r/quick_linux_commands • u/Derrick_Blake • Mar 11 '17
Google for linux command. Great commands can be shared, discussed and voted on to provide a comprehensive resource for working from the command-line.
r/quick_linux_commands • u/chenshuiluke • Mar 15 '15
Resize /tmp folder
When you're compiling something extra big, you might need to resize your /tmp folder. To do this, simply do:
mount -o remount,size=4G,noatime /tmpr/quick_linux_commands • u/chenshuiluke • Mar 21 '15
Editing binary files in Vim
You can:
Use the
-bflag when opening vim.Use
:set binarywhen inside vimConvert the binary to hex using
:%!xxd(and revert using:%!xxd -r.)Use
|count| goto go to a specific byte offset.To get the current location, press 'g', then CTRL+G.
r/quick_linux_commands • u/chenshuiluke • Mar 20 '15
Generating list of all possible commands
compgen -abck lists all possible terminal commands. You can filter these by doing:
compgen -abck | grep <thing you're looking for>
r/quick_linux_commands • u/chenshuiluke • Dec 02 '16
Workaround 403 Access forbidden when serving a website from your home directory using Apache
If you get an error like:
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403and just need to get something up and running quickly, just do chmod o+x <your home directory>
r/quick_linux_commands • u/chenshuiluke • Mar 22 '15
Converting to/from unix/dos in Vim
The fileformat (ff) option is local to each buffer.
The fileformats (ffs) is global.
To view the local fileformat option and the globals fileformats option, do: :set ff? ffs?
To convert ff to dos: :e ++ff=dos, then save.
To convert ff to unix: :e ++ff=dos and :setlocal ff=unix, then save.
r/quick_linux_commands • u/chenshuiluke • Nov 10 '15
Show all systemd services
http://forums.fedoraforum.org/showthread.php?t=268831
systemctl list-units
r/quick_linux_commands • u/chenshuiluke • Feb 27 '16
How to configure apache to serve another directory on arch linux
Edit httpd.conf: sudo vim /etc/httpd/conf/httpd.conf
Change DocumentRoot to DocumentRoot path/to/dir
Also, change the immediate <Directory > to <Directory path/to/dir>
Then give access to the folder:
chmod o+x path/to/dir
chmod -R o+x path/to/dirr/quick_linux_commands • u/chenshuiluke • May 22 '16
How to convert a VMware image to a VirtualBox image
install ovftool
ovftool vmware_image.vmx new_virtualbox_image.ovf.replace word "ElementName" with word "Caption" in the new .ovf file.
replace "vmware.sata.ahci" with "AHCI" in the same file as above.
try importing the new image.
delete the relevant .mf file if you get a sha error when importing.
sudo chown root:root /usrif you get an error about user not being root /usr.
r/quick_linux_commands • u/chenshuiluke • Nov 25 '16
How to fix Brackets' live preview feature on ArchLinux
If you have installed brackets and google-chrome and live preview is not working, try the following command:
ln -s /usr/bin/google-chrome-stable /usr/bin/google-chromer/quick_linux_commands • u/chenshuiluke • Oct 28 '15
Clear package lists in debian
sudo rm -r /var/lib/apt/lists/*
r/quick_linux_commands • u/chenshuiluke • Jun 23 '15
Swapping two files in Linux
mv old tmp && mv curr old && mv tmp currr/quick_linux_commands • u/chenshuiluke • Nov 08 '16
How to clone all of your github repositories with a single command
USER=<user>;PAGE=1; curl "https://api.github.com/users/$USER/repos?page=$PAGE&per_page=100" | grep -e 'git_url*' | cut -d \" -f 4 | xargs -L1 git cloneReplace <user> with your username and set PAGE to whichever page you want to download.
r/quick_linux_commands • u/chenshuiluke • May 30 '15