Linux terminal tutorial, aimed at those migrating from Windows, and users of single board computers including the Raspberry Pi. Covers a range of terminal commands and Linux concepts, including navigating and manipulating drives and directories using the commands pwd, ls, lsblk, cd, mkdir, rmdir, cp, and mv. Video also covers installing applications via the terminal, and a few tips and tricks!
If you enjoy this video, you may also find useful my other episodes:
Linux Mint 19 for Windows Users:
Zorin OS 15 for Windows Users:
Linux Tips for MS Office Users:
Linux PhotoShop Alternatives:
More videos on computing and related topics can be found at:
You may also like my ExplainingTheFuture channel at:
#LinuxTerminal #Terminal ~Linux #ExplainingComputers
Nguồn: https://ftlinuxcourse.com
Xem thêm bài viết khác: https://ftlinuxcourse.com/lap-trinh-linux
Xem thêm Bài Viết:
- Trải nghiệm mới hay ho với hướng dẫn cài Mac Os trên vmware
- Bật mí cách cài đặt ssl miễn phí lên Let’s Encrypt
- Tuyệt chiêu tạo usb boot kali linux đơn giản dành cho bạn
- Hướng dẫn chi tiết từ A – Z các bước cài đặt Python trên Windows 10
- Bật mí quy trình cài đặt Kali Linux trên Vmware đúng chuẩn và chi tiết
Nagifation?
man pages are more helpful then –help
great video as always. what about cd ../Documents ?
Perfect video for me, it display's everything.
When i need a recap, i watch this video.
Welldone @ExplaningComputers
another way to paste into the Terminal is
Ctrl+Shift+V
great video thank you very much
Hello. OpenSource enthusiast since first Linux distro release, Slackware. I have watched several of your videos and I am very impressed with the tools, creation, content, and the way u explained some complicated subjects for the regular audience in very understanding manner. Not to mention the nice British accent!! Kudos!!!
Once you learn linux shell, windows powershell becomes weird.
Pure Gold thx
@2:59 "Nagivation" 😎
"*.*" is for all files containing a period in its file name. "*" is for all files.
OUTSTANDING INTRODUCTION TO LINUX!
I've done a summary of this great video…
Accessing to the Linux Terminal Shell
————————————-
————————————-
-UBUNTU: Menu –> Applications –> Terminal.
-RASPI: Icon from the upper corner of the screen or Menu –> Accesories –> Terminal.
-Also a shortcut in any OS: CTRL+ALT+T.
EXAMPLE
————————————-
————————————-
cjb@Test-Rig:~$
cjb: user name.
Test-Rig: machine name.
~: working directory.
$: prompt ends here.
General-purpose commands
————————————-
————————————-
pwd Indicates the current directory where we are.
ls List of subfolders and dependant files of this folder. Is the equivalent to 'dir' of MS-DOS.
ls –la The same as the former command but with details. Is the equivalent to 'dir /all' of MS-DOS.*
cd Changes directory.
cd.. Goes to the parent directory.
cd – Goes to the last directory before the current one.
cd ~ Goes to the home directory.
cd ~/Videos Goes directly to Videos directory, which is located in the root.
clear Clears the screen.
lstblk Shows the mounts, that is, the physical and logical drives.**
exit Exits the terminal.
*White files are common files, those marked in blue are folders and those in pink are images. Of course, you can change these preferences in the editor.
**If a colored directory is highlighted, it means that it is accessible to all users.
SHORTCUTS
————————————-
————————————-
o TAB: pressing Tab, it autocompletes if there are no more options in the suggestion box.
o Up or down arrow: with the up arrow and down arrow, we navigate through the last typed orders.
o Secondary mouse button –> Copy or Paste: copy to paste from / to clipboard.
o You can use the help a command, for example: copy –help.
FILE MANAGEMENT
————————————-
————————————-
mkdir [folder name] Creates a new folder.
rmdir [folder name] Deletes the folder.
cp [file] [destination] Copies the file into the destination.
Eg.- cp Wide.png ~/Pictures
cp * . * Copies all the files of this folder. NOTE: * is a wildcard.
rm Wide.png Deletes this files.
rm *.png Deletes all the files with 'png' extension.
move or mv Moves files.
Eg.- mv tests ~/Documents
cp Moves directories.
Eg.- cp Tests ~/ Pictures
cp -r Moves recursively (that is, all the subfolders and files).
unzip Unzips a file.
Eg.- unzip layereffects (dot) zip
INSTALLING SOFTWARE
————————————-
————————————-
apt means… Advanced packaging tool.
sudo apt update Updates repositories.
sudo apt remove Deletes a package.
sudo apt install Installs a package.
TIPS
————————————-
————————————-
Paste with the secondary button of the mouse in order to paste data.
cp –help: shows an explanatory help of the command typed (here, 'copy').
New Linux user and currently trying to get my head around it… this is the best and most concise video I've found yet. Think I might "cd" over to the subscribe button 😉
Thank you so much for this tutorial. Can I encourage you to demonstrate how to install tar files using Linux.
Great video, how do you create a desktop like Windows from the terminal, many thanks.
Sudo apt…can you have it password protected encrypted? could it be accessed from the outside ? Seems a bit vulnerable to me
The wallpaper reminds me of pagodas in Bagan, Myanmar
No need for sudo with apt. Just 'apt update' prompts for password…. same for installing.
Thanks for making this usefull video!
My score on a Hazwell running the Hazwells own graphics, glmark2 Score: 1925
Thanks! I used to be a Unix user just to run various pieces of equipment around the lab. Now, thanks to the intrusive mandate of all major computer companies I have switched from Windows and Mac to Linux. It's a great refresher and seems much better than the old days … much appreciated!
great video im starting my IT security education next month and very handy to fiddling with it, these videos are a great help to me.
"Real men use the command line", of course. 🙂
Seriously, my first UNIX system was IBM's AIX. (I'd come from IBM mainframes). The default shell was ksh (this was the original ksh88 shell, written by David Korn of AT&T). So that was my first shell, and I grew to like it a lot. Then I learned that David & colleagues were still developing ksh, and there was a new version, ksh93, and you could download the binary (and source if you wanted) from AT&T's public repository, plus a lot more of the packages that Korn & colleagues had developed. I standardised on ksh93, and made sure to keep up with the new subversions, as they came along. I used it as my interactive shell, and wrote a load of housekeeping-type scripts in it, and found it great fun. I later moved to Solaris, and we also had a lot of Redhat Linux systems around, and I used ksh93 (with whatever happened to be the latest subversion) on those.
There was a small, but dedicated community of ksh/ksh93 users, based around a mailing list, to which David and colleagues contributed.
Time moved on and I retired, and didn't have a spare machine to run Linux, so I reverted to the dark (Windows) side for (relative) convenience and a quiet life. However, fortunately there was a UNIX emulator that ran under Windows, called UWIN, again, provided by David Korn and his team, and freely downloadable from AT&T. I thus continued to get my fix of UNIX and ksh93 for a good few years. Time moved on again, and I unfortunately lost my UWIN installation through various machine changes. I wasn't too worried because I "knew" I could always download it again.
However, when I came to try to download it (this was a few years back), to my horror, I realised that the AT&T repository was no longer available. Doing some google research revealed that David Korn and one of his colleagues on the project had been "let go" by AT&T (they were around normal retiring age), and it transpired that they were working for Google (on what I could not, and have not subsequently found out).
One of their colleagues who was still at AT&T eventually managed to copy most of the relevant source code over to the GITHUB repository, although as far as I could see, there were no precompiled binaries. If you wanted to use this code, you had to compile and built it yourself. Not too difficult for a UNIX/Linux guru, but I didn't consider myself one of those, and I'd never built it from scratch. For the time being I carried on with Windows7. I downloaded Cygwin, another UNIX under Windows emulator, which is ok….but it's not UWIN, which I was used to.
For the last year, i've been mentally preparing to migrate from Windows7 to some flavour of Linux, but inertia has ruled, so I'm still running W7 "at risk". However, I've determined to obtain a cheap spare machine (or two…), to try out different distros (I think I know where I will start), and who knows, maybe I'll succeed in building ksh93. (Although it's no longer being developed, of course, although some online rumour did suggest that David might have been working on its successor, over at Google….but who knows.
If anyone reading this fancies having a go at building ksh93 (or even UWIN), the entries in the GITHUB repository are here:
https://github.com/att/ast
https://github.com/att/uwin
Good video
Great video 🙂
It would be truly awesome to see a guide in linux for the use of scheduled tasks via cron job.
I have tried to make several cron jobs run at startup but it simply won't work.
If you have the time to see into this it would be great.
Thank's for all the awesome content.
Best regards
Niklas
This is one thing I hate about Linux, so much stuff is done though the Terminal. Here's an update: It's not the 80's anymore, we're not using DOS now, there's something called a GUI, make things use that instead! (and before anybody flames me for comparing the Terminal to DOS, yes I KNOW the Terminal is not actually DOS so don't point that out)
Great video (as usual). I've only just come to Linux but realised that I used Unix extensively in the 1980s but must have had a memory overflow error in my brain because I erased all this stuff! Thanks for the memory! 👍👍👍
I finally got Linux installed and working on my pc and I've had a headache ever since.Great video,lots of good info.Convinced me I made a huge mistake thinking I would be able to use Linux.At least it was free.Live and learn.Cheers mate. 🙂
Whats is your favorite linux os ?
"we type rmdir and Wales and Wales would now have disappeared"
The English: "IF ONLY!!"
Superb sir, kindly show some network commands and using usb drive and modem
Didn't know about cd – and learned a few other useful tricks! I've used Linux for a little while and a few days ago, I needed to figure out the keyboard shortcut for opening a terminal for the first time. If I would have watched this sooner, I wouldn't have had to do that, Lol.
Very helpfull! Thanks!
These Linux tutorials are absolutely perfect. MOAR.
I appreciate the video, but I don't see the point. All stuff before you showed how to install software is pretty useless seeing as you can do the same things using the mouse graphically. Even installing software is easier that way.
One difference in behaviour to watch out for is that on Linux the mv and cp will often replace the files in the destination without asking for confirmation
Terminals are often the only way to access things like servers, enterprise-grade network gear, or embedded systems. Those devices often runs Linux but don't even have enough hardware to (or in the case of servers, don't have the spare CPU cycles to) run a graphical user interface.
Reading most comments as a positive indication to make some more on this topic… Thanks for this clearifying tutorial.
lsblk. nice command. thanks
Hello, great video by the way. If I might suggest, I´de like to learn more about some Linux (almost unknown) distros for Raspeberry Pi – like ArchLinux for arm : https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3.
Rgds.
Sorry. To say. I like it when you say. SUE-DUE. When you say, sudo. But I'd prefer pseudo.
Great share sir! Thanks, love it!