Webinar TECH Expert Meet Linux! PLAN

Total Page:16

File Type:pdf, Size:1020Kb

Webinar TECH Expert Meet Linux! PLAN

Webinar TECH Expert Meet ! PLAN

• Introduction-Plan

• How to open Terminal?

• Vital commands and use cases ( su, , , , man )

• Goals for the next chapter

Webinar Tech Expert 2 Linux line is playing the vital role for WMS admin

The command line gives you power over your system and access to features that are not available through a graphical interface.

Webinar Tech Expert 3 First things first – how to get into Terminal in WMS?

In right upper corner of WMS press the following icon

Webinar Tech Expert 4 Then what? Press option 11) Shell or press “Enter”

Webinar Tech Expert 5 Basic look of Terminal for the first access

Webinar Tech Expert 6 Commands time!

Access to certain parts in not granted for “admin”, that’s why we need to use “root” user to work with Linux part of WMS. To login as user you need to use the following command:

“su”

su – is used to login as “”.

Webinar Tech Expert 7 Working with “su”

Once “su” is entered, user is prompted to enter the password

Note: Password for root admin is special and is not equal to usual WMS admin password

Webinar Tech Expert 8 Navigation in Linux

In Linux, every and is under the root directory, which is the first or top-most directory in the directory tree. The root directory is referred to by a single leading /.

Webinar Tech Expert 9 Navigation in Linux

Directories structure from “third person view”

Webinar Tech Expert 10 Directories structure from “third person view”

• Current - PWD The current working directory is the directory in which the user is currently working in. Each time you interact with your command prompt, you are working within a directory.

The command displays the of your current working directory.

Webinar Tech Expert 11 Navigation in Linux

• Changing directory – CD The cd (“change directory”) command is used to change the current working directory in the , can be used with two arguments – relative and absolute path

Example of command:

cd /path/to/folder

Webinar Tech Expert Navigation in Linux

When navigating the using “cd”, you can use either the absolute or the relative path to the resource.

• An absolute path is defined as specifying the location of a file or directory from the root directory(/).

• The relative path starts from your current directory

Webinar Tech Expert 13 Navigation in Linux

• To go back one level in the directory structure, you can use the “..” shortcut like this:

Example of command: cd ..

Webinar Tech Expert Navigation in Linux

• Command - LS List of files in the directory. This command contains different options for filtering and displaying.

Webinar Tech Expert List of options for “LS” command to play with

Option Explanation

ls-a list all files including hidden file starting with '.' ls --color colored list [=always/never/auto] ls -d list directories - with ' */' ls -F add one char of */=>@| to enteries ls -i list file's inode index number ls -l list with long format - show permissions ls -la list long format including hidden files ls -lh list long format with readable file size ls -ls list with long format with file size ls -r list in reverse order ls -R list recursively directory tree ls -s list file size ls -S by file size ls -t sort by time & date ls -X sort by extension name

Webinar Tech Expert Linux manual is closer than you think

• Command – MAN

“man” command in Linux is used to display the user manual of any command that we can run on the terminal. It provides a detailed view of the command which includes name, synopsis, description, options, status, return values, errors, files, versions, examples, authors and see also.

Webinar Tech Expert Man in action, example of “man ls”

Webinar Tech Expert Goals for the next chapter of Linux trainings

1. Access Terminal and login as superuser

2. To be able to access folder /mnt/backups/traces/ with “cd” command

3. Check if you accessed the right directory with “pwd” command

4. To be able to display all the content of folder /var/spool/ callweaver/voicemail/

5. To be able to data about following commands in built-in manual: su, ls, pwd

Webinar Tech Expert

Recommended publications