Value In Brief – by Abanoub Hanna
All You Need To Know Explained In Brief

Posts Tagged with Linux

View time taken of last command in Fish shell

Just use $CMD_DURATION to get the time taken running the last command. To make your prompt give you the elapsed time for every command you run in Terminal, add this function in your Fish config file ~/.config/fish/config.fish. function fish_prompt; echo "$CMD_DURATIONο£Ώ "; end The prompt will be like that. I hope this helps you. You know someone will benefit from this, share it with him/her, a friend or colleage.

How to get filename without the extension in Fish script?

We can use string split like this (string split -r -m1 . $filename)[1]. I use this method in my Fish script function. function vidfps --description "vidfps <input.mp4>" ffmpeg -i $argv -filter:v fps=fps=24 (string split -r -m1 . $argv)[1]-24fps.mp4 end The above function is located in my ~/.config/fish/config.fish file. So I can use it to convert a video to a 24 frames-per-second video using ffmpeg. the code (string split -r -m1 .

How to get arguments in Fish script?

Here is a command with 3 arguments. myfunc one two "third arg" How to get each argument in Fish script/function. to get all arguments as one string/text, use $argv. to get first argument, use $argv[1]. to get second argument, use $argv[2]. to get the function name or the script name, use $argv[0]. to the remaining three arguments after two : myfunc one two three four five, use $argv[3..-1] as -1 is the end of arguments.

ssh Handshake Failed Unable to Authenticate | Github Actions

I have set up the github action to deploy laravel website using appleboy ssh-action but all actions failed with this weird error message. 2022/09/03 23:46:24 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain The fix is simple. just change the permission of authorized-keys by this command. chmod 700 ~/.ssh/authorized_keys If it works, share it with a friend or colleage.

Windows vs Linux RAM Usage - Is Linux Better Than Windows?

Is Linux better than Windows in RAM usage or RAM management ? Both Linux and Windows are full multitasking operating systems that use virtual memory. If the operating system does not have enough space of physical memory, it use swap memory. swapping means that if your actual RAM is totally used, the operating system will take some of the memory from RAM and copy them into the hard disk or SSD.

Is Ubuntu Good for Hacking ?

Yes, it is good but not recommended. The recommended operating systems for hacking are Kali Linux and Parrot OS as they are dedicated for hacking and pentesting with ready-to-use tools and apps. So, I recommend using Kali Linux for hacking and pentesting. And I do not recommend using it as your main operating system. What is my general purpose OS I recommend ? It’s Ubuntu for sure. Why use a dedicated OS for hacking and pentesting ?

Is Ubuntu Better Than Windows

To know if Ubuntu is better than Windows or not, we should compare important points. Here is a table of Ubuntu vs. Windows 10 comparison. Ubuntu Windows 10 price free πŸ†“ paid πŸ’° Security more secure πŸ”’ less secure πŸ™…β€β™‚οΈ Privacy great πŸ‘ bad πŸ‘Ž Performance better than Windows medium System Resources use less resources consumes alot of resources Updating better ❀️ horrible πŸ‘Ώ Live USB available by default on bootable USB sticks no Open Source yes πŸ§‘β€πŸ’» no Reliability and Stability stable black screen of death ☠️ and blue screens 🀦🏻 Options and Choices too many Linux distros, too many desktop environments, .

Is Ubuntu a Linux Distribution ?

Yes. Ubuntu is the most popular Linux distribution for desktop and laptop computers. A Linux distritubtion (aka distro) is an operating system with a Linux kernel and GNU utility programs. Ubuntu is suitable for users and developers. You can use Ubuntu to create your own Android apps in Android Studio, or VS Code. You can create apps in Flutter for Android and desktop operating systems. You can use Ubuntu to surf the web with Google Chrome or Firefox browser.

Is Ubuntu a Debian Based System ?

Yes. Ubuntu is a Debian based operating system. Debian is an operating system using Linux kernel. Debian is known for its stability and reliability. So, Canonical built Ubuntu as an operating system based on Debian to maintain a stable reliable OS for users, developers and enterprise companies. Despite being Debian-based, Ubuntu has too many unique and different features implementation which makes it easily distinguishable from Debian itself. I personally prefer Ubuntu as it is feature rich with somewhat unique looking GNOME environment.

Is Ubuntu an Operating System ?

Yes. Ubuntu is an operating system. Its kernel is the Linux kernel. And the GNU utils which are the essential programs. And the desktop environment β€” which is the visible graphical interface β€” is GNOME. Ubuntu has too many desktop environment beside GNOME. For example, it has KDE plasma and known as Kubuntu. You can use Ubuntu like you use Windows 10 or Mac OS. It is a great operating system.