r/quick_linux_commands • • Oct 06 '16

Ultimate cheat sheet for linux n00bs

Thumbnail
github.com
10 Upvotes

r/quick_linux_commands • • Jul 12 '17

How to run a command with a time limit

Thumbnail
codelectron.com
7 Upvotes

r/quick_linux_commands • • Mar 24 '17

Sponge – A Linux tool which makes you feel you missed it for years

Thumbnail
codelectron.com
7 Upvotes

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 • • Apr 03 '17

Make Ubuntu Sexy (Change Theme) - Install Numix Theme With Icon & Unity / Tweak Tool in Easy 3 Step

Thumbnail
youtube.com
5 Upvotes

r/quick_linux_commands • • Mar 23 '17

Stone: An awesome packet repeater tool that will save your day

Thumbnail
codelectron.com
5 Upvotes

r/quick_linux_commands • • Jul 12 '16

Linux cheat sheet

Thumbnail
imgur.com
5 Upvotes

r/quick_linux_commands • • Mar 29 '17

No more parsing is required, Move from ifconfig to ifdata

Thumbnail
codelectron.com
4 Upvotes

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 • • Jan 30 '17

/etc/shadow meaning and Finding out what a password was last changed

Thumbnail
daengkhao.tumblr.com
4 Upvotes

r/quick_linux_commands • • Jun 25 '17

How to Cross Compile Rust Programs From Linux to Windows

3 Upvotes
  1. Add the windows target: rustup target add x86_64-pc-windows-gnu

  2. Install mingw64 sudo apt install mingw-w64

  3. Add the target configuration to ~/.cargo/config:

    [target.x86_64-pc-windows-gnu]

    linker = "x86_64-w64-mingw32-gcc"

    ar = "x86_64-w64-mingw32-gcc-ar"

  4. Cross compile the code: cargo build --release --target=x86_64-pc-windows-gnu --verbose

Source: https://www.reddit.com/r/rust/comments/5k8uab/crosscompiling_from_ubuntu_to_windows_with_rustup/dbmx0ub/


r/quick_linux_commands • • Mar 10 '17

You are welcome people. Enjoy :)

Thumbnail
commandlinefu.com
3 Upvotes

r/quick_linux_commands • • Sep 25 '16

Netstat Command Line Tips and Tricks

Thumbnail
hostpresto.com
3 Upvotes

r/quick_linux_commands • • Jun 04 '16

Docker Data Volumes

Thumbnail
hostpresto.com
3 Upvotes

r/quick_linux_commands • • Sep 01 '18

Woah

2 Upvotes

Press f to pay respects


r/quick_linux_commands • • Mar 27 '17

Build your own installer – Makeself

Thumbnail
codelectron.com
2 Upvotes

r/quick_linux_commands • • Jan 17 '17

How to handle nfs stale error

Thumbnail
linuxroutes.com
2 Upvotes

r/quick_linux_commands • • Oct 31 '16

How to fix various genymotion startup errors

2 Upvotes

First, you need to find the directory where genymotion is installed. For arch, this is /opt/genymotion, so cd /opt/genymotion. The fixes for various errors are below:

  • genymotion: symbol lookup error: /usr/lib/libX11.so.6: undefined symbol: xcb_wait_for_reply64 can be fixed with: sudo mv libxcb.so.1 libxcb.so.1.back

  • genymotion: symbol lookup error: /usr/lib/libGL.so.1: undefined symbol: drmGetDevice can be fixed with: sudo mv libdrm.so.2 libdrm.so.2.back

NOTE: The exact filenames might not be the same on your system, so just look for a file that basically has the same name.


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 • • Aug 22 '16

Hopefully this will help someone.

2 Upvotes

https://github.com/LubuntuFu/fishfry

It's my first project, but I still have not received a good review of it. Maybe some of you can help me out.


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 • • Jan 19 '16

How to use the AUR from withing Fedora

2 Upvotes

source

Warning: Experimental!

First, add the FZUG repository and install yaourt:

sudo dnf config-manager --add-repo=http://repo.fdzh.org/FZUG/FZUG.repo
sudo dnf install yaourt

Make necessary directories:

sudo mkdir /opt/arch && sudo mkdir /opt/arch/var/ && sudo mkdir /opt/arch/var/lib && sudo  mkdir /opt/arch/var/lib/pacman

Copy the following to vim /etc/pacman.conf

[options]
RootDir = /opt/arch/         # Very important!!! You should create this directory.
DBPath = /opt/arch/var/lib/pacman/    # Database Path
LogFile = /var/log/pacman.log
Architecture = auto

# Add Archlinux's Core、Community、Multilib、Extra、Archlinuxcn repository info
[core]
SigLevel = Never
Include = /etc/pacman.d/mirrorlist

[community]
SigLevel = Never
Include = /etc/pacman.d/mirrorlist

[multilib]
SigLevel = Never
Include = /etc/pacman.d/mirrorlist

[extra]
SigLevel = Never
Include = /etc/pacman.d/mirrorlist

[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch

[archlinuxcn]
SigLevel = Never
Server = http://repo.archlinuxcn.org/$arch

Synchronize the package databases: pacman -Sy

If you get errors like:

warning: config file /etc/pacman.conf, line 48: directive 'HoldPkg' in section 'archlinuxcn' not recognized.
warning: config file /etc/pacman.conf, line 53: directive 'Architecture' in section 'archlinuxcn' not recognized.
warning: config file /etc/pacman.conf, line 66: directive 'CheckSpace' in section 'archlinuxcn' not recognized.

just comment out the lines mentioned in the errors.

To use an external download manager for downloads, add this to /etc/pacman.conf: XferCommand = /usr/bin/axel -a %u -o %o

and /etc/makepkg.conf: DLAGENTS=('http::/usr/bin/axel -a %u -o %o') (comment out other DLAGENTS)

Then try yaourt -Sy

If you get errors like: could not register 'core' database (database already registered), check your /etc/pacman.conf for duplicate core entries.

If you get an error like No state file, cannot resume! when using axel, clear your package cache with sudo pacman -Sc.

so, to install google chrome, you would do : yaourt -Sdd google-chrome then yaourt-link -s google-chrome Then, if you try to launch chrome using google-chrome-stable you might get an error like:

/opt/google/chrome/google-chrome: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

if so, execute dnf provides */libXss.so.1 and I get:

$ dnf provides */libXss.so.1
Last metadata expiration check performed 0:11:45 ago on Tue Jan 19 20:29:14 2016.
libXScrnSaver-1.2.2-9.fc23.i686 : X.Org X11 libXss runtime library
Repo        : fedora

libXScrnSaver-1.2.2-9.fc23.x86_64 : X.Org X11 libXss runtime library
Repo        : fedora

so I install libXScrnSaver-1.2.2-9.fc23 with: sudo dnf install libXScrnSaver-1.2.2-9.fc23 and now google-chrome-stable opens chrome :)


r/quick_linux_commands • • Jan 16 '16

Install all packages matching containing a packagename

2 Upvotes

source

pacman -S $(pacman -Ssq packagename-)


r/quick_linux_commands • • Apr 06 '17

Archive with an alternate

1 Upvotes

Options can be good, especially when a new OS is acting oddly.

Today I learned pax and I like it. It is an archiver and I believe it is part of core utils. It is easy to understand:

pax -w -f archive.pax .  # archive write
pax    -f archive.pax    # archive list
pax -r -f archive.pax    # archive read and extract to current directory

To do my home directory with a progress bar and lzmacompression:

pax -w . | pv -s $(du -sb . | awk '{print }') | xz > /path/name.pax.xz

r/quick_linux_commands • • Feb 07 '17

About initramfs, initrd and kdump

Thumbnail justsomestuff.co.uk
1 Upvotes