• DevOps
    Case Study

    How we built a resilient multi-account, multi-cloud solution for a Health Tech service provider!

    READ CASESTUDY
    icon

    24/7 DevOps as a Service

    Round-the-clock DevOps for uninterrupted efficiency.

    icon

    Infrastructure as a Code

    Crafting infrastructure with ingenious code.

    icon

    CI/CD Pipeline

    Automated CI/CD pipeline for seamless deployments.

    icon

    DevSecOps

    Integrated security in continuous DevOps practices.

    icon

    Hire DevOps Engineers

    Level up your team with DevOps visionaries.

    icon

    Consulting Services

    Navigate success with expert DevOps consulting.

  • TechOps
    Case Study

    How we built a scalable Odoo solution for a Travel Tech service provider!

    READ CASESTUDY

    WEB HOSTING SUPPORT

    icon

    HelpDesk Support

    Highly skilled 24/7 HelpDesk Support

    icon

    Product Support

    Boost your product support with our expertise.

    MANAGED SERVICES

    icon

    Server Management

    Don’t let server issues slow you down. Let us manage them for you.

    icon

    Server Monitoring

    Safeguard your server health with our comprehensive monitoring solutions.

    STAFF AUGMENTATION

    icon

    Hire an Admin

    Transform your business operations with our expert administrative support.

    icon

    Hire a Team

    Augment your workforce with highly skilled professionals from our diverse talent pool.

  • CloudOps
    Case Study

    How we helped a Private Deemed University in India, save US $3500/m on hosting charges!

    READ CASESTUDY
    icon

    AWS Well Architected Review

    Round-the-clock for uninterrupted efficiency

    icon

    Optimize

    Efficient CloudOps mastery for seamless cloud management

    icon

    Manage

    Automated CI/CD pipeline for seamless deployments

    icon

    Migrate

    Upgrade the journey, Migrate & Modernize seamlessly

    icon

    Modernize

    Simplify compliance complexities with our dedicated services

    icon

    FinOps as a Service

    FinOps as a Service

  • SecOps
    Case Study

    How we built a scalable Odoo solution for TravelTech service provider!

    READ CASESTUDY
    icon

    VAPT

    Vulnerability Assessment and Penetration Testing

    icon

    Source Code Review

    Ensuring source code security ans safe practices to reduce risks

    icon

    Security Consultation

    On demand services for improving server security

    icon

    System Hardening

    Reduced vulnerability and proactive protection

    icon

    Managed SoC

    Monitors and maintains system security. Quick response on incidents.

    icon

    Compliance as a Service

    Regulatory compliance, reduced risk

  • Insights
    Case Study

    How we helped a Private Deemed University in India, save US $3,500/m on hosting charges!

    READ CASESTUDY
    icon

    Blog

    Explore our latest articles and insights

    icon

    Case Studies

    Read about our client success stories

    icon

    Flipbook

    Explore our latest Flipbook

    icon

    Events

    Join us at upcoming events and conferences

    icon

    Webinars

    Watch our educational webinar series

  • Our Story
  • Contact Us

Interested to collaborate?

Get in touch with us!

Ready to elevate your business with certified cloud expertise? Contact us today to learn how our team can help you leverage cloud technology to drive growth, streamline operations, and enhance security.

  • AWSAWS
  • Azure CloudAzure Cloud
  • Google CloudGoogle Cloud
  • Akamai CloudAkamai Cloud
  • OVHOVH
  • Digital OceanDigital Ocean
  • HetznerHetzner
  • Kubernetes Consultancy Services
  • K8s & Cloud native Solutions
  • 24/7 Infrastructure Monitoring
  • DevOps as a Service
  • Cloud CI/CD Solutions
  • White Labeled MSP Support
  • Our story
  • Life@SupportSages
  • Insights
  • Careers
  • Events
  • Contact Us

Connect with us!


LinkedInFacebookXInstagramYouTube

aws partneraws advanced partner
SupportSages

Copyright © 2008 – 2026 SupportSages Pvt Ltd. All Rights Reserved.
Privacy PolicyLegal TermsData ProtectionCookie Policy
Chapter 7 Basic Commands in Linux.

Chapter 7 Basic Commands in Linux.

Faheem P.

  • 6 min read
SupportSages Logo

Generating audio, please wait...

Commands are used to do specific tasks in linux.Commands are always helpful in Linux administration support and If you are a good “commander” you can do anything in Linux! But its difficult to remember all the available commands , so use the help provided by linux , as mentioned in the previous chapter 🙂

Commands:

Everything on a linux system can be done by typing commands – playing music, browsing, chatting and what not.

Commands can be typed in virtual consoles, pseudo terminals (terminal emulators)

indisage@localhost:~$

$ usually means – logged in as a regular user
# usually means – logged in as root.

Don’t rely completely on the above statement of $ and #. They can be changed by changing the PS1 environment variable.

The Syntax:-

command -space- options -space- arguments
Command : ls , mv, cp
Options : -h , –help, –version, -V
Arguments : anything other than options passed to command

eg: ls -la /usr

Basic Commands:-

ls – -a, -F, -l, -1, -A, -t, -R        : lists the files
cd -> dir, /usr , . , ../, .. , –    : change the directory
cp                                        : copy
mv                                       : move
rm                                       : remove
mkdir,rmdir -> -rf and -p options    : make a directory, remove a directory
more/less                            : file perusal filter for crt viewing, less is opposite of more
cat                                      : concatenate files and print on the standard output
head/tail                             : head-output the first part of files,tail-output the last part of files
find/locate/whereis/type –> -exec, -ok, -print0, -type, -uid, -inum, con?, con*, *.conf, “*.conf”, ?conf*
–> locate searches DB and full path, not just filename, while find is relatime and searches filename — -r , -i, -n
cut -f 1,4,5 -d “:” filename
clear                                   : clear the screen/console
date/cal                              : to display the current date/calender
df                                       : report file system disk space usage
finger                                 : user information lookup program
man                                   : an interface to the on-line reference manuals
nano/joe/vi/ed                    : a text base editor’s
passwd                               : change user password
pwd                                   : displays the present working directory
ifconfig                              : configure a network interface
init                                    : process management daemon
ping                                   : send ICMP ECHO_REQUEST to network hosts
ps                                      : report a snapshot of the current processes.
rm/shred                            : remove files or directories/overwrite a file to hide its contents, and optionally delete it
route                                  : show / manipulate the IP routing table
tracroute                             : traces route to a network host discovering MTU along this path
sudo                                   : execute a command as another user
top                                     : display Linux tasks
touch                                  : change file timestamps
w/who/whoami                   : Show who is logged on and what they are doing
which                                 : locate a command
grep -> -r , -i , -n, -v ; man 7 regex ; egrep = grep -E : print lines matching a pattern
kill                                     : send a signal to a process
talk/write/wall/mail            : send a message to another user
tar/cpio/gzip                       : The GNU version of the tar archiving utility, compress or expand files
split                                    : split a file into pieces

Bash Keyboard Shortcuts :-

Ctrl + A – moves cursor to beginning
Ctrl + E – moves cursor to end
Ctrl + h / backspace – Deletes one character
Ctrl + c – Terminate the current executing command, if any and returns to shell
Ctrl + d – Logout
Ctrl + s – Screenlock
Ctrl + q – Unlock screenlock
Ctrl + w – Deletes last word
Ctrl + u – Deletes entire line
Ctrl + k – Clears command line from cursor position to end of line
Ctrl + y – pastes it back
Ctrl + T – Transpose the character on which the cursor rests and the preceding character.
Esc + T  – Transpose the word on which the cursor rests and the preceding word.
tab – Command / filename completion
Ctrl + R – reverse search on command history
Esc+F or Ctrl + -> – Moves right by a word
Esc+B or Ctrl + <- – Move cursor one word left
Ctrl + f or Right Arrow – Move cursor one position right.
Ctrl+B or Left Arrow – Move cursor one position left.
Alt + . and Esc + . – Picks up the arguments of the previous commands

Using Mouse in text mode:-

Copy:-
Left click – Start the selection
Drag – Select an area
Right Click : End the selection. Copied

Paste:-
Middle mouse button click

Happy Commanding 🙂

  • General
  • Howtos
  • Linux
  • Training

‘scp’ permission issue : simple fix!

SupportSages Logo
  • Linux
logo

Buggy wget again causing issues with Fantastico – Tells you installed, but fools you

SupportSages Logo
  • cPanel
  • Linux
logo

Chapter 10 Editing files in Linux.

SupportSages Logo
  • Howtos
  • Linux
  • Training
logo

Chapter 11 Basic Shell Scripting in Linux!

SupportSages Logo
  • Linux
logo

Posts by Faheem P.

Faheem enjoys learning new technologies and loves to implement cutting edge solutions. He is one of the most active member in various technical forums and is a familiar face in various brain storming sessions. He takes great pride in being an explorer and the best thing you can be sure about in his room is the backpack!!