Tuesday, 16 Dec 2025
Subscribe
logo
  • Global
  • AI
  • Cloud Computing
  • Edge Computing
  • Security
  • Investment
  • Sustainability
  • More
    • Colocation
    • Quantum Computing
    • Regulation & Policy
    • Infrastructure
    • Power & Cooling
    • Design
    • Innovations
    • Blog
Font ResizerAa
Data Center NewsData Center News
Search
  • Global
  • AI
  • Cloud Computing
  • Edge Computing
  • Security
  • Investment
  • Sustainability
  • More
    • Colocation
    • Quantum Computing
    • Regulation & Policy
    • Infrastructure
    • Power & Cooling
    • Design
    • Innovations
    • Blog
Have an existing account? Sign In
Follow US
© 2022 Foxiz News Network. Ruby Design Company. All Rights Reserved.
Data Center News > Blog > Global Market > How to examine files on Linux
Global Market

How to examine files on Linux

Last updated: October 24, 2024 6:32 pm
Published October 24, 2024
Share
data reflecting on woman’s glasses
SHARE

$ ls -ld TOPs
-rw-r--r--. 1 jdoe jdoe 9571 Oct 18 12:58 TOPs
$ ls -ldh TOPs
-rw-r--r--. 1 jdoe jdoe 9.4K Oct 18 12:58 TOPs

Viewing file content material

The cat, head, tail, extra and much less instructions assist you to view the content material of textual content information. The cat command shows your entire file whereas head and tail show the primary and final traces (defaulting to 10). The instructions under show solely three traces.

$ head -3 TZs
Africa/Abidjan
Africa/Accra
Africa/Addis_Ababa
$ tail -3 TZs
W-SU
WET
Zulu

The extra command will present you a screenful of traces at a time or fewer when you add an choice (e.g., extra -10). Each the extra and much less instructions assist you to again up whereas viewing file content material, however much less backs up a line at a time whereas extra backs up a display at a time.

Utilizing the nl command

If you wish to view the traces in a textual content file in a numbered format, you should utilize the nl command. Right here’s an instance of utilizing nl together with head to see solely the primary three traces of the output.

$ nl TZs | head -3
1 Africa/Abidjan
2 Africa/Accra
3 Africa/Addis_Ababa

Viewing different kinds of information

To view the content material of information apart from textual content information whereas engaged on the command line, you should utilize the od -bc command, but it surely’s going to point out you the content material within the octal and character (the place accessible) codecs proven under. The “E L F” within the output under is brief for “executable and linkable format”. This format is used for storing binaries, libraries, core dumps and such.

$ od -bc /usr/bin/extra | head -4
0000000 177 105 114 106 002 001 001 000 000 000 000 000 000 000 000 000
177 E L F 002 001 001
0000020 003 000 076 000 001 000 000 000 040 070 000 000 000 000 000 000
003 > 001 8

The JFIF sequence within the instance under identifies the file as being in jpeg format.

$ od -bc hummingbird.jpg | head -6
0000000 377 330 377 340 000 020 112 106 111 106 000 001 001 001 000 110
377 330 377 340 020 J F I F 001 001 001 H
0000020 000 110 000 000 377 341 032 130 105 170 151 146 000 000 111 111
H 377 341 032 X E x i f I I
0000040 052 000 010 000 000 000 005 000 032 001 005 000 001 000 000 000
* b 005 032 001 005 001

Within the command under, output from the echo command is piped to the od -bc command to offer a simple instance of how this command works. It reveals the letters in “hey” adopted by a newline character.

See also  How cybersecurity and AI will influence global elections in 2024

Source link

TAGGED: examine, files, Linux
Share This Article
Twitter Email Copy Link Print
Previous Article Person holding a mask following an AI sector study highlighting that record growth is masking serious challenges including skills, safety, infrastructure, security, and more, according to the authors of the report. Record growth masks serious challenges
Next Article Zella DC launches ‘Outback’ micro data center for extreme edge deployments Zella DC launches ‘Outback’ micro data center for extreme edge deployments
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Your Trusted Source for Accurate and Timely Updates!

Our commitment to accuracy, impartiality, and delivering breaking news as it happens has earned us the trust of a vast audience. Stay ahead with real-time updates on the latest events, trends.
FacebookLike
TwitterFollow
InstagramFollow
YoutubeSubscribe
LinkedInFollow
MediumFollow
- Advertisement -
Ad image

Popular Posts

Bitcoin Mining Restrictions in Norway: Government Regulation

Norway’s new regulation regulates crypto mining resulting from environmental worries, aiming to align with international…

April 18, 2024

Deutsche Telekom Joins Forces with Meta Pool to Pioneer Decentralized AI on NEAR Protocol

Mendoza, Argentina, November twelfth, 2024, Chainwire In a giant step for decentralized expertise, Deutsche Telekom…

November 12, 2024

New Exclusive Insider Membership Released by HostingJournalist.com

In an thrilling growth for the cloud, internet hosting, and information middle sector, HostingJournalist.com has…

April 28, 2024

eStruxture Launches Inaugural Green Finance Framework

eStruxture launched Canada's first Inexperienced Finance Framework to fund sustainable digital infrastructure. Canada’s First “Inexperienced…

July 30, 2025

A major data broker hack may have leaked precise location info for millions

Final week, main location information dealer Gravy Analytics disclosed a knowledge breach which will have…

January 13, 2025

You Might Also Like

Drax outlines 100MW data centre plan at Selby power station
Global Market

Drax outlines 100MW data centre plan at Selby power station

By saad
Is the data centre ‘skills gap’ the wrong question?
Global Market

Is the data centre ‘skills gap’ the wrong question?

By saad
3D Rendering of digital binary data on microchip with glow circuit board background. Concept of for deep machine learning, crypto currency, hi tech product uses. Big data visualization, cpu processing
Global Market

How can Arm gain enterprise acceptance?

By saad
Two futuristic-looking hands shaking.
Global Market

Most significant networking acquisitions of 2025

By saad
Data Center News
Facebook Twitter Youtube Instagram Linkedin

About US

Data Center News: Stay informed on the pulse of data centers. Latest updates, tech trends, and industry insights—all in one place. Elevate your data infrastructure knowledge.

Top Categories
  • Global Market
  • Infrastructure
  • Innovations
  • Investments
Usefull Links
  • Home
  • Contact
  • Privacy Policy
  • Terms & Conditions

© 2024 – datacenternews.tech – All rights reserved

Welcome Back!

Sign in to your account

Lost your password?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
You can revoke your consent any time using the Revoke consent button.