Rohan Jaitpal

In continuation to Previous Post “How to Install Linux”

Step 1 : Listing Files and Dirs - Some basic commands

clear -> clear the screen
ls      -> list content
ls -l   -> list content in long listing format
ls -al -> list all subcontent in long listing format
ll       -> an alias for the above
ls -R  -> list content recursively
l.       -> list hidden files
ls -F  -> list content and classify them

alias  -> display all aliases for current user
alias -> make alias eg alias c='clear'
unalias      -> remove alias eg unalias c

exit     -> log out from the system
logout -> log out from the system
^d      -> log out from the system

tree     -> list content in a tree (hierarchial) diagram
tree -d -> list subdirectories only - no files
tree -p -> list content with their permissions

cd (directory) -> change directory to...
cd ..                -> change to parent directory
cd -                 -> change to previous directory
cd                   -> change to home directory
cd ~                -> change to home directory

pwd     -> print work (current) directory
pwd -P -> print parent working dir of this symlink dir

 

Step 2 : Working with Files / Dirs

mkdir  (directory)    -> make directory
mkdir -p (directory)  -> make parent directories also if it does not exist

touch -> make a 0 byte file if it does not exist
or update date stamp of file if it exists

cp     -> copy (for files)
cp -a -> copy (for directories)
cp -p -> copy and preserve date and time

mv -> move OR rename

rmdir  -> remove empty directory
rm     -> remove (for files)
rm -f  -> remove forcefully ( " " )
rm -r  -> remove recursively (for directories)
rm -rf -> remove recursively and forcefully ( " " )

cat     -> display content of the file
cat -n -> display content of the file and number the lines

 

Step 3 : Date and Time

cal        -> display calendar for current month
date      -> display system date and time
date -s (value) '' -> change system date and time in mm/dd/yy
hwclock               -> display the hardware clock
hwclock --hctosys -> set the system time from the hardware clock

 

Step 4 : Soft link and Hard Link

ln -s -> make a soft/sym/symbolic link
ln     -> make a hard link

 

Step 5 : Linux Editors - pico, mcedit, vi

history -> display the list of the last 1000 commands
! 100   -> Run command 100 in history

vi        -> text editor
pico     -> text editor
mcedit -> text editor
joe      -> text editor

 

Step 6 : Other Basic

aspell -c (filename) -> check the spelling in the file

lynx                      -> web browser
lynx -dump
links                     -> web browser
elinks                   -> web browser

mtools
======
mdir
mcopy
mformat

file     -> display the type of file
which -> display the path of the binary

hostname -> display system name with domain

id       -> display id info of current user
id -u   -> display user id of current user
id -un -> display username of current user
id -g   -> display group id of current user
id -gn -> display groupname of current user

uptime -> display for how long the system has been running

tty -> display current terminal number

users      -> display no. of users currently logged in
whoami   -> display username of current user
who        -> display users logged in the system with their respective terminals and time since logged in
who am i -> display current user, terminal and uptime
w            -> display is details which files are open on which terminal

finger
finger (user) 

pinky
pinky (user) 

 

Step 7 : Processes and Daemons

ps      -> display process status of current terminal
ps -l   -> display process status of current terminal in detail
ps -e  -> display process status of all terminals
ps -el -> display process status of all terminals in detail

uname -s  -> display kernel name
uname -r  -> display release
uname -v  -> display version
uname -p  -> display processor type
uname -m -> display machine type
reset         -> reset the current terminal

locate  (file) -> searches /var/lib/slocate/slocatedb
Use updatedb* to rebuild the database

find <$file> -name (file)  eg find / -name dad -print Find file "dad"
eg find / -name "dad*" -print Find all files
starting with dad

 

Step 8 : System shutdown :)

init 6   -> reboot the system
reboot -> reboot the system
shutdown -tx -r now -> reboot the system where x is in seconds
shutdown +x -> reboot the system where x is in minutes

init 0 -> shutdown system

halt        -> halt the system after shutdown
poweroff -> halt the system after shutdown

- Cheers

Rohan Jaitpal

About :- The red-naped ibis (Pseudibis papillosa) Also known as the Indian black ibis or black ibis is a species of ibis found in the plains of the Indian Subcontinent. Unlike other ibises in the region it is not very dependent on water and is often found in dry fields a good distance away from water. It is usually seen in loose groups and can be told by the nearly all dark body with a white patch on the shoulder and a bare dark head with a patch of crimson red warty skin on the crown and nape. It...


Rohan Jaitpal

About:- Rajmachi Fort (Killa) is one of the many historical forts in the rugged hills of Sahyadri Mountains (Western Ghats). It consists of two twin fortresses Shriwardhan Ballekilla and Manaranjan Balekilla, with a wide Machi (plateau) surrounding the two Balekillas. Udhewadi is a small village of about 22 houses situated on the machi, at the southern foot of Manaranjan Balekilla of Rajmachi Fort. Rajmachi Fort is a popular destination for nature lovers, trekkers and...


Rohan Jaitpal

Like any other Operating System (OS). Linux is an alternative OS for DOS, UNIX, Mac OS and Microsoft Windows platform. Linux belong to the family of "free and open source software" (FOSS). On September 17, 1991 the first distribution of LINUX kernel was released by "Linus Torvalds" freely. Later the project was taken up by open-source software collaboration community, which eventually contributed to todays multiple flavours distribution. Linux was originally developed for personal computers based...


Rohan Jaitpal

In continuation to Previous Post “What is LINUX” Step 1: Choosing Linux Distribution and downloading it.The world of Linux is free open-source software with hundreds of active Linux distributions, and dozens of different desktop environments you could run on them. Linux distributions combine the Linux kernel with other software like the GNU core utilities, X.org graphical server, a desktop environment, a web browser, and more. To form a single operating system you can install. Do check...


Rohan Jaitpal

What is Cloud Computing? To be precise Cloud computing is a concept to leverage the IT infrastructure and support to optimize liability of the capital expenditure and risk to maintain and provide the digital services. To be very simple its a pool of shared services offered and delivered on-demand often over the internet as required on dynamically configurable system resources and manageable higher-level services that can be provided with minimal downtime and effort in term of computing services...


Rohan Jaitpal

In continuation of the Previous Post “What is Cloud Computing?” Public CloudWhen a Cloud computing infrastructure is maintained and managed by the single cloud service provider and the shared resource services are rendered over the network to a different customer, and the cloud customer has no physical control what so ever over the infrastructure except the connectivity is called as a Public Cloud.Public cloud services can be free or have a comparatively lower cost of engagement....


Rohan Jaitpal

In continuation to Previous Post “Cloud location-based deployment model” As per NIST, there are three services offering model for Cloud services as IAAS, PAAS, and SAAS Infrastructure as a service (IaaS)A cloud-based computing solution offering, where a complete infrastructure is been outsourced. Where a service provider delivers a complete set of preinstalled and configured hardware or software or both usually a LAMP or WAMP stack on a virtualized or containerized and sometimes physical...


Rohan Jaitpal

In continuation to Previous Post “Cloud service-based offering model” Distributed cloudGeographically distributed shared resources across multiple systems and locations assembled for serving the interconnected data on a single network or hub service as an application to the cloud computing technology platform is known as distributed cloud computing.Usually, it’s a community effort to reduce the overall cost of implementation, and expansions in terms of resource utilization require...


Rohan Jaitpal

Information security is the process of protecting information and information systems from unauthorized disclosure, access use for destruction of intended information by Deletion, modification which can cause disruption of related services. It deals with information, regardless of its format. It encompasses paper documents, digital data, and intellectual property. CIA Triad: Confidentiality, Integrity, and Availability (CIA) have served as the industry-standard principles of information security. Cybersecurity...