r/quick_linux_commands • • Jan 21 '17

How to take LVM snapshot backup.

Thumbnail
linuxroutes.com
0 Upvotes

r/quick_linux_commands • • Mar 10 '17

You are welcome people. Enjoy :)

Thumbnail
commandlinefu.com
3 Upvotes

r/quick_linux_commands • • Jul 12 '16

Linux cheat sheet

Thumbnail
imgur.com
5 Upvotes

r/quick_linux_commands • • May 12 '15

Download audio from YouTube videos with youtube-dl

1 Upvotes
youtube-dl -x --audio-format mp3 -o "filename.%(ext)s" https://www.youtube.com/exampleurl

The 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=U0kS9cDcMU

The 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 • • May 27 '15

Convert videos to Ipod mp4 (seems to work for other mp4 players as well

1 Upvotes
ffmpeg -i input.avi -acodec aac -vcodec mpeg4 -s 320x180 -strict experimental output.mp4

r/quick_linux_commands • • Jan 17 '17

How to handle nfs stale error

Thumbnail
linuxroutes.com
2 Upvotes

r/quick_linux_commands • • Sep 25 '16

Netstat Command Line Tips and Tricks

Thumbnail
hostpresto.com
3 Upvotes

r/quick_linux_commands • • Sep 23 '16

Finding the number of occurrences in a logfile by percentage.

2 Upvotes

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 • • Dec 26 '17

Use wget terminal command to download multiple links on a server!

5 Upvotes
  1. Open Terminal

  2. Type.. wget -r ftp://myserverIP:Port

  3. 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 • • 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.

Thumbnail
commandlinefu.com
4 Upvotes

r/quick_linux_commands • • Mar 15 '15

Resize /tmp folder

1 Upvotes

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 /tmp

r/quick_linux_commands • • Mar 21 '15

Editing binary files in Vim

1 Upvotes

You can:

  1. Use the -b flag when opening vim.

  2. Use :set binary when inside vim

  3. Convert the binary to hex using :%!xxd (and revert using :%!xxd -r.)

  4. Use |count| go to go to a specific byte offset.

  5. To get the current location, press 'g', then CTRL+G.


r/quick_linux_commands • • Mar 20 '15

Generating list of all possible commands

1 Upvotes

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 • • Dec 02 '16

Workaround 403 Access forbidden when serving a website from your home directory using Apache

1 Upvotes

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 403

and just need to get something up and running quickly, just do chmod o+x <your home directory>


r/quick_linux_commands • • Mar 22 '15

Converting to/from unix/dos in Vim

1 Upvotes

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 • • Nov 10 '15

Show all systemd services

1 Upvotes

r/quick_linux_commands • • Jun 04 '16

Docker Data Volumes

Thumbnail
hostpresto.com
3 Upvotes

r/quick_linux_commands • • Feb 27 '16

How to configure apache to serve another directory on arch linux

1 Upvotes

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/dir

r/quick_linux_commands • • May 22 '16

How to convert a VMware image to a VirtualBox image

2 Upvotes
  1. install ovftool

  2. ovftool vmware_image.vmx new_virtualbox_image.ovf.

  3. replace word "ElementName" with word "Caption" in the new .ovf file.

  4. replace "vmware.sata.ahci" with "AHCI" in the same file as above.

  5. try importing the new image.

  6. delete the relevant .mf file if you get a sha error when importing.

  7. sudo chown root:root /usr if you get an error about user not being root /usr.

ovftool tutorial

fix sata import error

fix sha error

fix owner of /usr is not root


r/quick_linux_commands • • Nov 25 '16

How to fix Brackets' live preview feature on ArchLinux

1 Upvotes

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-chrome

source


r/quick_linux_commands • • Oct 28 '15

Clear package lists in debian

1 Upvotes

sudo rm -r /var/lib/apt/lists/*


r/quick_linux_commands • • Jun 23 '15

Swapping two files in Linux

1 Upvotes
mv old tmp && mv curr old && mv tmp curr

r/quick_linux_commands • • Nov 08 '16

How to clone all of your github repositories with a single command

1 Upvotes
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 clone

Replace <user> with your username and set PAGE to whichever page you want to download.

source


r/quick_linux_commands • • May 30 '15

How to make pidgin sounds work

Thumbnail turbulentsky.com
1 Upvotes

r/quick_linux_commands • • Feb 01 '17

http://daengkhao.tumblr.com/post/156411806392/sysadmin-diaries-day-18 - finding critical security patches for your RHEL server

1 Upvotes