Video summary
Linux for Beginners in One Video 🔥 100 Commands Explanation [HINDI] | MPrashant
Main summary
Key takeaways
Summary
The video is a practical introduction to using the Linux command line. The presenter demonstrates how to navigate the filesystem, inspect and edit files, search and process text, manage software and services, handle users and permissions, monitor system resources, and perform basic networking and process-management tasks. Examples are run in a terminal, with some commands intended for an online practice environment.
Main Ideas and Command Guide
1. Getting Oriented in the Terminal
pwddisplays the current working directory.whoamiprints the currently logged-in username. The terminal prompt may also show the username, hostname, and current folder.datedisplays the current date and time. Format codes can show particular parts, such as only the date or time.lslists files and directories:ls -lshows a detailed listing.ls -ltsorts by modification time, newest first.ls -ltrreverses that order, putting the newest entries at the bottom.ls -lhdisplays file sizes in a human-readable format.- In a detailed listing,
-indicates a regular file anddindicates a directory.
clearclears the terminal. Ctrl+L is a keyboard shortcut for the same task.
2. Reading, Searching, and Editing Files
catprints a file’s contents to the terminal.lessopens a file for scrollable viewing:/wordsearches forward;?wordsearches backward.nmoves to the next match.Gjumps to the end;gjumps to the beginning.qexits.
moredisplays a file page by page;qexits.- The presenter demonstrates both
viandnanofor editing:- In
vi, pressito enter insert mode, thenEsc, followed by:wqto save and quit. - In
nano, make edits, use Ctrl+X to exit, and confirm whether to save.
- In
- Shell tab completion can complete a partially typed filename or command.
3. Creating, Deleting, and Moving Files and Directories
touch filenamecreates an empty file.rm filenameremoves a file.mkdir dirnamecreates a directory.rmdir dirnameremoves an empty directory.cd dirnamechanges directory;cd ..moves up one level. Multiple..components can move up several levels.- Linux paths:
- An absolute path starts from the root directory,
/. - A relative path is expressed from the current directory.
.represents the current directory.~represents the current user’s home directory.
- An absolute path starts from the root directory,
cp source destinationcopies a file.mv source destinationmoves a file; it can also rename one.- The video also demonstrates copying a file’s contents into another file.
- Wildcards help select matching names:
*matches a sequence of characters, such as files beginning with a particular letter or ending in.csv.- Brace expansion can generate a series of names, for example
file{1..10}.
4. Text Searching, Sorting, and Transforming
head -n 5 filedisplays the first five lines;tail -n 5 filedisplays the last five.sort filesorts lines;sort -r filesorts them in reverse order.- A pipe (
|) sends one command’s output to another. For example, sorting text and piping it touniqcan remove adjacent duplicates. split -l N file prefixdivides a file into chunks containing a specified number of lines.grep pattern filefinds matching lines. The presenter also demonstrates searching for multiple patterns.shuf filerandomizes the order of a file’s lines.wc -l filecounts lines.cmp file1 file2reports whether files differ;diff file1 file2shows line-level differences.find path -name patternsearches for files by name and is case-sensitive unless configured otherwise.locate patternsearches a file index quickly. The index may need updating withupdatedb, which generally requires administrative privileges.awkcan select columns from delimited data. For a comma-separated file, the example uses a comma as the field separator and prints a chosen field.cut -cextracts character positions from lines.sed -n '5p' fileprints a particular line; substitution expressions can replace text in displayed output.trcan convert lowercase text to uppercase, or vice versa.truncate -s size filechanges a file’s size, which is useful when creating a file of a chosen size for testing.fold -w Nwraps long lines at a specified width.
5. Getting Help and Using Shell Utilities
historylists previously entered commands. The output can be filtered to find earlier uses of a command.helpprovides help for shell built-ins. Piping long output throughlessormoremakes it easier to inspect.man commandopens the manual page for a command.which commandidentifies the executable path that will be used.bcprovides a simple command-line calculator.caldisplays a calendar, including for a specified year.script filenamerecords terminal activity in a file for later reference.aliascreates a shortcut for a longer command. A command-line alias is temporary; persistent shell settings can be placed in a user’s.bashrcfile and loaded withsource.
6. Archives, Downloads, and Software Installation
zipandunzipcompress and extract files.- For directories, the presenter demonstrates using
tarto create a compressed archive and extract it again. wget URLdownloads a file from the internet. The video also shows requesting a web endpoint and printing its response in the terminal.- Package installation depends on the Linux distribution:
- The examples mention
aptfor Debian- and Ubuntu-based systems andyumordnffor Red Hat-based systems. - Installation may require
sudoor root access. - Package-manager commands can also list installed or available packages.
- The examples mention
7. Services, Environment Variables, and Administrative Access
systemctlmanages system services:systemctl status servicechecks a service’s state.systemctl start serviceandsystemctl stop servicestart or stop it.- The video also demonstrates listing services.
- Environment variables store values that programs and the shell can use. The presenter illustrates setting
JAVA_HOMEand updatingPATHto select a Java installation. - An
exportcommand sets variables in the current shell session. To make settings persist for a user, add them to.bashrcand load the file withsource. suswitches to another user, such as root, andexitreturns to the previous shell.sudoruns a command with elevated privileges, but only users authorized by the administrator can use it.
8. Remote Access, File Transfer, and Permissions
- The video demonstrates connecting to a remote machine using its host information and transferring a file with
scp. A destination is specified in the formuser@host:path. - File permissions are shown as three groups for the owner, group, and others:
rmeans read,wmeans write, andxmeans execute.chmodchanges permissions. Symbolic forms can add or remove permissions for the owner, group, or others.chownchanges a file’s owner;chgrpchanges its group.
- If access is denied, inspect the permissions and ownership. Changes to protected files may require root privileges.
9. Monitoring System Resources and Processes
freedisplays memory use; a human-readable option makes the figures easier to interpret.topprovides a live view of processes and resource use.dureports disk usage for a directory and its contents.dfreports filesystem capacity, used space, and available space.hostnamedisplays the machine’s name.lscpuprovides CPU details;uname -adisplays system and kernel information;lsblklists block devices and partitions.pslists processes. The video filters this output withgrepto look for a specific process.pgrepcan find process IDs by process name.killcan stop a process by ID; forceful termination should be used cautiously. The presenter also demonstrates stopping a process by name.jobslists jobs associated with the current shell:- Ctrl+Z suspends a foreground job.
bgresumes a suspended job in the background.fgbrings a background job to the foreground.
nohup command &runs a command so it can continue in the background after the shell session ends.- The video also demonstrates scheduling a one-time command with
at, then using Ctrl+D to submit the job.
10. Basic Networking and User Administration
ifconfigis used to inspect network-interface information and IP addresses.ping hostchecks connectivity to a host; packet loss can indicate a connectivity problem.- The video mentions checking whether a network port is accessible and whether a service is listening, using tools such as
ncandnetstat. traceroute hostshows the network hops taken toward a destination.- User and group administration examples include:
useraddto create a user andpasswdto set that user’s password.idto display a user’s ID and group memberships.groupaddto create a group.usermodto modify a user’s group membership.userdelandgroupdelto delete users or groups, subject to system requirements.
- The examples reinforce that user creation, group assignment, password changes, and other administrative operations may require root or
sudoaccess.
11. Redirecting Command Output
>sends command output to a file, replacing its existing contents.>>appends output to the end of a file.- The presenter demonstrates redirecting command results into files and distinguishes between overwriting and appending.
Speakers or Sources Featured
- M. Prashant — the presenter and narrator, explaining and demonstrating the commands.
- Terminal demonstrations — command output from the Linux environment is shown throughout; no other identifiable speaker is featured.
Rate this summary
Your feedback will help improve summaries.
Improve this summary
Reprocess with a stronger model when the summary feels incomplete or inaccurate.
Translate summary in another language
Ask questions to this video
Chat for follow-up questions, clarifications, and source-backed answers.