Top 5 Linux Commands I always use!

preview_player
Показать описание
This was something quick i have just put together, i would like to know your commands you guys use all the time!! thanks for the view!

○○○ LINKS ○○○

○○○ Send Me Stuff ○○○

Don Hui
PO BOX 765
Farmingville, NY 11738

○○○ Other Videos ○○○

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

Is video is really use to start a conversation! What commands do u use?

NovaspiritTech
Автор

Tools of the BASH power user:

find => locate files/directories based on wildcard names
file => determine file types
xargs => process massive amounts of string arguments
sort => sort output
uniq => remove duplicates
dirname => return directory portion of file path
basename => return only the base file name in a file path
cut => return individual fields from file output
sed => command line editing of source files or text streams

Mastering how to use the pipe command (i.e. '|') and also nesting commands using the $() operator is also highly recommended.

Example 1: Find all local directories that contain C headers

$ find . -name "*.h" | xargs -r dirname | sort | uniq

Example 2: In-line edit all files in the local 'src' directory that contain the string 'foo:', replacing 'foo:' with 'bar:', while skipping any 'Binary files' returned by grep:

$ sed -i -e 's/foo:/bar:/g' $(grep -R 'foo:' src | grep -v ^'Binary file' | cut -f1 -d: | sort | uniq)

BASH has great power if you are willing to dig in and learn what it can do. This only scratches the surface.

stefandriesner
Автор

The up/down keys let you scroll through history, and while you are there you can arrow back and change the command. Though knowing both will be useful.

MorganizerT
Автор

Thanks Dan!! This was awesome - I'll add these to my list of commands!

Luiblonc
Автор

dammit Don that last command was like giving matches to a kid and saying 'don't mess with that'!! lol

justbanter
Автор

this is good info. Been using linux commands for long time and I didn't know most of this

XWRKS
Автор

Learn Emacs, that is the same shortcut commands as Bash.
Command I use a lot. tail -f files
I use it to show log files while I configure a server or looking up errors. I run in another window or terminal.
C-z, bg and fg some time with argument is useful. Especially if I forgot append & to graphical commands.
And yes !! are very useful.
But I have stoped using iconfig, and uses ip instead. Much more useful and powerful.
Don't forget >> and <EOF. The >> works like >, that is redirect stdout to a file, but >> append data to that file. <EOF are useful if you want to add many lines in stdin. Redirection of stdout and stdin can be done to one command, like this,
$ cat > test.txt <EOF
This is
Some lines
EOF
$
You can change the EOF word to whatever you want.

Of course there are lots of other useful commands. But these I wrote down in these two minutes.

AndersJackson
Автор

Nice. Did not expect to learn anything but I definitely did. Awesome video.

gearboxworks
Автор

Never though by the title I would learn commands but you supriced me

Stoney_Eagle
Автор

screen -S [name] to start another "screen" to work on. Can be detached and reattached to. A good way to leave something running when you exit your ssh session.

AnyAirRc
Автор

init 6 = a better reboot.
sudo -i = root prompt
locate (file_Name) = find file location
df -h = list your partitions and info about size etc.
I use more commands then this but im not writing a novel on youtube

CommanderCrash
Автор

Nice video!
I recommend pmount. It allows you to mount a partition without root privileges.
I use it mainly for using USB sticks in the terminal.

finndriver
Автор

I often use the tab key when entering long filenames in filepaths. Type first few characters then TAB and the remainder of filename is entered. If filenames similar it enters up to point file differs.

sendgl
Автор

commands :: history, !!, !3, sudo !!
i always add midnight commander (mc) as filemanager, this also adds a text editor (mcedit) and ftp client, i2c-tools todo i2cdetect
history | grep "keyword" shows all the lines containing the keyword
history too long, do history | tail -20 to show the last 20 lines, , history | head -15 shows the earliest 15 lines

jyvben
Автор

My Top 2 Linux Commands I always use:
1. tab ( autocomplete)
2. ctrl+R ( autocomplete through history, thus I do not use history or bang)

zirize
Автор

a simple one, but i use is sudo rm -frP ... i prefer shred is on linux, but this one works on linux and mac

ommardelrio
Автор

I have a libre file on my Raspberry Pi3 that I use for my most common commands. That way I can just copy/paste in the command prompt.

BlazeOGlory
Автор

I like to make the first command I run "sudo apt update && sudo apt upgrade" then in the future, whenever I want to update I just type "!1"

exoteric-ericrosete
Автор

Hey Novaspirit you create video ? How to make ts3 server on rasbery ? Please

alaahuklobasa
Автор

My personal best : yes something | lolcat

ulysg