0% found this document useful (0 votes)
19 views

Linux Commands Summarizations

The document compares and contrasts the command line interface and graphical user interface. It discusses how the CLI is more difficult to use but faster and uses less memory than the GUI. It also provides descriptions of common CLI commands.

Uploaded by

Mohamed Caddani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Linux Commands Summarizations

The document compares and contrasts the command line interface and graphical user interface. It discusses how the CLI is more difficult to use but faster and uses less memory than the GUI. It also provides descriptions of common CLI commands.

Uploaded by

Mohamed Caddani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Command Line Interface / Terminal File Manager / Graphical user interface

It is comparatively more difficult to It is comparatively easier to understand and


understand and use. use.
CLI consumes comparatively less memory. The GUI consumes comparatively more
memory.
It works at a higher speed as compared to It works at a much slower speed as
the GUI. compared to the CLI.
We cannot change or modify the CLI We can change or modify the GUI
operating system’s appearance. operating system’s appearance.
No graphs are included in CLI Graphics are always used in the GUI.

No menus are provided in CLI The GUI OS comes with menus.

Pointing devices are not used at all in CL We use pointing devices in the GUI for
choosing/selecting the items we want to.

Commands. Descriptions.
# Sign for a root user

Pwd Present working directory

$ Regular user

: Simple separator

~ Home directory

Cd To change to a particular directory

Cd / Don’t forget space Move to the root directory

Cd .. Back up one level


Directories are denoted in blue color

Files are denoted in white.

The Commands Are Case-sensitive

Ls Lists all files and directories in the present


working directory

ls – R Lists files in sub-directories as well

ls – a Lists hidden files as well

ls – al Lists files and directories with detailed


information like permissions , size , owner
etc.

cat > filename Creates a new file

cat filename Displays the file content

cat file file2 > file3 Joins two files (file1, file2) and stores the
output in a new file (file3)

mv file "new file path" Moves the files to the new location
mv filename new_file_name Renames the file to a new filename
Sudo Allows regular users to run programs with
the security privileges of the superuser or
root

Rm Deletes a file
Man Gives help information on a command
History Gives a list of all past commands typed in
the current terminal session

Clear Clears the terminal


Mkdir Creates a new directory in the present
working directory
Mkdir Create a new directory at the specified
path

Rmdir Deletes a directory


Mv Renames a directory
sudo adduser Adds a user
sudo passwd -l 'username' Disables a user
sudo userdel -r 'username Deletes a user
su username Login a user
passwd username Change password of a user
Finger Displays details of all users
finger username Displays details of specific user
Tail Prints the last 10 lines of each file
Head Prints the first 10 lines of each file
sudo usermod -l newuser prevuser Rename a user
sudo usermod –L username Lock a user
sudo usermod –U username UnLock a user
sudo groupadd newname Adds a newgroup
sudo groupdel groupname Deletes a usergroup
sudo groupmod –n newg prevg Renames a usergroup
sudo usermod -a -G GROUPNAME Adds user to a usergroup
USERNAME
sudo deluser USER GROUPNAME Removes user from a user group
sudo cat /etc/group Displays the usergroups
groups username Displays the group of a user

You might also like