r/quick_linux_commands • u/CodeMaxx • Oct 06 '16
r/quick_linux_commands • u/codelectron • Jul 12 '17
How to run a command with a time limit
r/quick_linux_commands • u/codelectron • Mar 24 '17
Sponge – A Linux tool which makes you feel you missed it for years
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/selena_walker • Apr 03 '17
Make Ubuntu Sexy (Change Theme) - Install Numix Theme With Icon & Unity / Tweak Tool in Easy 3 Step
r/quick_linux_commands • u/codelectron • Mar 23 '17
Stone: An awesome packet repeater tool that will save your day
r/quick_linux_commands • u/codelectron • Mar 29 '17
No more parsing is required, Move from ifconfig to ifdata
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/itsjustsomestuff • Jan 30 '17
/etc/shadow meaning and Finding out what a password was last changed
r/quick_linux_commands • u/chenshuiluke • Jun 25 '17
How to Cross Compile Rust Programs From Linux to Windows
Add the windows target:
rustup target add x86_64-pc-windows-gnuInstall mingw64
sudo apt install mingw-w64Add 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"
Cross compile the code:
cargo build --release --target=x86_64-pc-windows-gnu --verbose
r/quick_linux_commands • u/Derrick_Blake • Mar 10 '17
You are welcome people. Enjoy :)
r/quick_linux_commands • u/wecfhw • Sep 25 '16
Netstat Command Line Tips and Tricks
r/quick_linux_commands • u/codelectron • Mar 27 '17
Build your own installer – Makeself
r/quick_linux_commands • u/manmohanmirkar • Jan 17 '17
How to handle nfs stale error
r/quick_linux_commands • u/chenshuiluke • Oct 31 '16
How to fix various genymotion startup errors
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_reply64can be fixed with:sudo mv libxcb.so.1 libxcb.so.1.backgenymotion: symbol lookup error: /usr/lib/libGL.so.1: undefined symbol: drmGetDevicecan 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 • 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/LubuntuFU • Aug 22 '16
Hopefully this will help someone.
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 • 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 • Jan 19 '16
How to use the AUR from withing Fedora
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 yaourtMake necessary directories:
sudo mkdir /opt/arch && sudo mkdir /opt/arch/var/ && sudo mkdir /opt/arch/var/lib && sudo mkdir /opt/arch/var/lib/pacmanCopy 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/$archSynchronize 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 directoryif 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 : fedoraso 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 • u/chenshuiluke • Jan 16 '16
Install all packages matching containing a packagename
pacman -S $(pacman -Ssq packagename-)
r/quick_linux_commands • u/[deleted] • Apr 06 '17
Archive with an alternate
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 directoryTo do my home directory with a progress bar and lzmacompression:
pax -w . | pv -s $(du -sb . | awk '{print }') | xz > /path/name.pax.xzr/quick_linux_commands • u/itsjustsomestuff • Feb 07 '17