Archive | GNU/Linux

Basic Linux Commands Made Easy Part2

In the previous post, we discussed some Linux commands and we saw how to show files, traverse directories, make them, and much more. Now, that was just the first level of the basic Linux commands. Let’s take one more step and see more of the basic Linux commands that you will use. We talked about the ls command in the previous post and we’ve discussed only 2 parameters. Let’s dig deeper and see more parameters that can make you more powerful. ls -R to recursively list all files in a directory. The -R parameter will traverse deeply till it finishes all directories.

Continue Reading →

ls -R command

ls –r  Reverses the sorting order for the displayed files and directories.

ls -r- command

ls –S  Sorts the output by file size.

ls -lt command

Filter ls Command Output

ls –l myfile?

A question mark is used to represent one character.

ls –l myprob*

An asterisk is used to represent zero or more characters.

The question mark and asterisk are called wild characters.

ls wild character

Create Files

touch test1

The touch command is used to create an empty file.

touch command

If you use it against an existing file, it will change the access time, if the file doesn’t exist, it will create it.

You can use the same command to change the modification time for an existing file,  just type it with -t followed by the time with the following format YYYYMMDDHHMM

touch –t 202012011200 test1

touch existed file

Create Shortcuts (Links)

We know from the previous post that cp command is used to copy files.

In Linux, You can create:

  • Hard link.
  • Symbolic, or soft link.

cp –l file1 file2

Hard Links

The hard link makes a separate file which contains information about the original file and where it is located.

Keep in mind that hard link only created between files on the same physical drive.

If you need to create links on a different physical drive, you’ll have to create a soft link instead.

cp hardlink

Symbolic Links

To create a symbolic or soft link, use the -s parameter:

cp –s file1 file2

cp softlink

Here we should mention also another command that makes links other than cp which is ln command, you can create hard and soft links with it like this:

ln myfile myfile2

This command creates a hard link.

ln command

ln –s myfile myfile2

This command creates a soft link.

ln softlink

Viewing the File Type

file myfile

Determines the kind of the file.

file command

Viewing End of File

The tail command is used to view the last 10 lines of a file. This command is useful when working with big files.

-n parameter to specify the number of lines.

-f parameter to stay on the file and continue to watch the last lines you specified like monitoring, and this is very important when looking at log files.

tail command

View Top of File

The head command is used to view the first 10 lines of a file.

head command

List Running Processes

The ps command lists the currently running process.

$ ps aux

ps aux

The top command does the same thing.

-You can use the top command with -c option to view the executable path for the running process.

top command

Kill a process

To kill a process:

pkill processName

kill command

type xkill and press Enter to kill any nonresponsive window.

xkill command

Disk Free Space

df command shows the disk free space.

df –h

-h for human readable value

df command

That was some of the basic Linux Commands. I hope you enjoy it. Keep coming back.

likegeeks.com

0

UBOS 12 Beta duyuruldu

Hızlı bir şekilde ağ hizmetleri kurmak için araçlar sağlayan USA kökenli ve Arch Linux tabanlı bir sunucu dağıtımı olan UBOS‘un 12 sürümünün betası duyuruldu. Bunun bir test sürümü olduğunun unutulmaması ve yalnızca test etmek amacıyla kullanılması gerektiği hatırlatılırken, test eden kullanıcıların tespit ettikleri hataları rapor etmeleri rica edildi. Nextcloud, wiki ve WordPress gibi hizmetleri komut satırı ile kurmayı mümkün kılan UBOS; tüm hizmetleri yedeklemeyi ve onları geri yüklemeyi de mümkün kılıyor. UBOS 12 Beta hakkında ayrıntılı bilgi edinmek için sürüm notlarını inceleyebilirsiniz.

Continue Reading →

UBOS 12 Beta edinmek için aşağıdaki linklerden yararlanabilirsiniz.

 

0

Manjaro 17.0.6 duyuruldu

Manjaro’nun yeni 17.0.6 sürümü, Bernhard Landauer tarafından duyuruldu. En yeni kararlı paket güncellemeleriyle yeni bir kurulum medyası hazırlandığını söyleyen Landauer; tüm resmi sürümlerinin (Xfce, KDE ve Gnome) güncellendiğini, topluluk sürümleri olarak i3 ve Deepin masaüstü ortamı 15.5’i içeren Manjaro-Deepin versiyonlarının yakın bir zamanda çıkarılacığını belirtti. Manjaro 17.0.6 hakkında ayrıntılı bilgi edinmek için sürüm duyurusunu inceleyebilirsiniz.

Continue Reading →

Manjaro 17.0.6 edinmek için aşağıdaki linklerden yararlanabilirsiniz.

0

SystemRescueCd 5.1.2 duyuruldu

Sistem tamiri için tasarlanan Gentoo tabanlı, Fransız kökenli SystemRescueCd‘nin 5.1.2 sürümü duyuruldu. Sistemin kararlı Linux çekirdeği LTS 4.9.60’a dayalı olarak geldiği bildirilirken, UEFI Önyükleme için Grub 2.02 kullanımının tercih edildiği belirtildi. Disk araçları güncellenmiş olarak gelen sistemde, sistem çekirdeği; ext2, ext3, ext4, ReiserFS, Reiser4FS, btrfs, XFS, JFS, VFAT, NTFS, ISO9660 gibi günümüzün en önemli dosya sistemlerinin tümünü ve Samba ve NFS gibi ağ dosya sistemlerini destekliyor. Gentoo tabanlı önyüklenebilir bir CD-ROM veya USB sistem olan SystemRescueCd ile yönetim görevlerini kolaylıkla yürütmek ve sabit disk bölümlerini düzenlemek mümkündür. SystemRescueCd 5.1.2 hakkında ayrıntılı bilgi edinmek için değişiklikler sayfasını inceleyebilirsiniz.

Continue Reading →

SystemRescueCd 5.1.2 edinmek için aşağıdaki linklerden yararlanabilirsiniz.

0

Black Lab Enterprise Linux 11.5 Beta 3 duyuruldu

Ubuntu tabanlı, kullanıcı dostu masaüstü ve sunucu versiyonlarıyla kullanıma sunulan GNU/Linux dağıtımı Black Lab Linux’un (eski adıyla OS4 OpenLinux) 11.5 sürümünün 3. betası, Roberto J. Dohnert tarafından duyuruldu. Black Lab Enterprise Linux 11.5 Beta 3’ü duyurmaktan memnuniyet duyduklarını söyleyen Dohnert; bu sürümde, sistemde birkaç geliştirme yaptıklarını belirtti ve sürücü yetenekleri artırılan sistemin 4.10.0-38 Linux çekirdeği üzerine yapılandırılarak daha iyi bir performans elde edildiğini ifade etti. Xorg 1.18’e dayalı olarak gelen sistem; LibreOffice 5.4 ve Chromium Browser 62 içeriyor ve Thunderbird, Ice SSB, Calligra, Skype 8.9, Nitroshare, Samba4, Synergy, Audacious gibi popüler yazılımların en yeni sürümleriyle kullanıma sunuluyor. Kullanıcılara KDE Plasma 5, Xfce, LXDE ve MATE masaüstü ortamlarını deneyimleme olanağı sağlayan sistem; XFS, JFS ve Btrfs dosya sistemlerini destekliyor ve ses düzenleme, 3D render ve video düzenleme araçları içeriyor. Black Lab Enterprise Linux 11.5 Beta 3 hakkında daha ayrıntılı bilgi edinmek için sürüm duyurusunu inceleyebilirsiniz.

Continue Reading →

Black Lab Enterprise Linux 11.5 Beta 3 edinmek için aşağıdaki linklerden yararlanabilirsiniz.

0