Quantcast
Channel: nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format (RSS/FEED)
Browsing all 2612 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

Awk Floating Point Number Addition Results Are UnexpectedFrequently Asked...

I am using awk to grep 'foo' from a text file and cacluate sum of field # 7. But, result is rounded to an integer. I need exact result such as 385858.66 and not 385858 using the following command:grep...

View Article


Image may be NSFW.
Clik here to view.

Nginx Redirect Mobile / Smart Phone Traffic To Mobile Version Of the Web...

I am a new nginx user and I would like to redirect all mobile / smart phone users from www.example.com to m.example.com domain. How do I detect a mobile phone browser in nginx? How do I redirect all...

View Article


Image may be NSFW.
Clik here to view.

Linux: Log Everyone Out Of The SystemFrequently Asked Questions About Linux /...

I can login as root user on Debian or Ubuntu/RHEL/CentOS Linux based system. I need to log everyone off to install new kernel and/or hardware. How do I do this on Linux? What is the best way to logout...

View Article

Image may be NSFW.
Clik here to view.

Unix: csh Shell Loop ExampleFrequently Asked Questions About Linux / UNIX

Can you give me a simple loop example in csh shell in Linux or Unix like operating systems?Read answer to: "Unix: csh Shell Loop Example"   

View Article

Image may be NSFW.
Clik here to view.

FreeBSD 9.1: HowTo Load a Kernel ModuleFrequently Asked Questions About Linux...

I am a new FreeBSD Unix users. I am using FreeBSD version 9.1 and how do I load a kernel module called drm using command line option?Read answer to: "FreeBSD 9.1: HowTo Load a Kernel Module"   

View Article


Image may be NSFW.
Clik here to view.

Debian / Ubuntu: apt-get Force Reinstall PackageFrequently Asked Questions...

I am a new Debian Linux v.7.x / Ubuntu Linux LTS user. How do I reinstall a package using apt-get command line?Read answer to: "Debian / Ubuntu: apt-get Force Reinstall Package"   

View Article

Image may be NSFW.
Clik here to view.

W: TMPDIR is Mounted noexec, Will Not Cache Run Scripts Error and...

I mount /tmp with nodev, nosuid, and noexec options to increase the security of my Linux based web server. And, whenever I ran apt-get install or apt-get upgrade command, I am getting the following...

View Article

Image may be NSFW.
Clik here to view.

Bash: Display Web Page Content In TerminalFrequently Asked Questions About...

How can I fetch HTML web page content from bash and display on screen using shell utilities?Read answer to: "Bash: Display Web Page Content In Terminal"   

View Article


Image may be NSFW.
Clik here to view.

Linux / Unix: Shell Script Find Out In Which Directory Script File...

I need to find out in which directory my bash script resides so that I can read config file called .backup .ignore .target. For example, if my script resides in >/home/foo/script.sh, I need to read...

View Article


Image may be NSFW.
Clik here to view.

CentOS / RHEL: Install KornShell (KSH)Frequently Asked Questions About Linux...

I am porting ksh script from Sun/Oracle Unix to Linux. How do I install ksh (KornShell) in CentOS / Fedora / Red Hat Enterprise Linux? How do I run and test ksh script on RHEL/CentOS Linux?Read answer...

View Article

Image may be NSFW.
Clik here to view.

HowTo: OS X Take a Screenshot On My Mac DesktopFrequently Asked Questions...

Ican use Shutter app in GNU/Linux to take a screenshot of a specific area, window, whole screen, or even of a website. How do I take a screenshot on my mac book pro/mini desktop using Mac OS X?Read...

View Article

Image may be NSFW.
Clik here to view.

Linux: Find Out What Is Using TCP Port 80Frequently Asked Questions About...

How do I find out what is listing or using tcp port number 80 on Linux based systems using command line options?Read answer to: "Linux: Find Out What Is Using TCP Port 80"   

View Article

Image may be NSFW.
Clik here to view.

Fedora Linux: Restart / Stop / Start DHCPD Server CommandFrequently Asked...

I am a new Fedora Linux version 18 system administrator. How do I restart dhcpd server using command line options in Fedora Linux server running on HP server hardware?Read answer to: "Fedora Linux:...

View Article


Image may be NSFW.
Clik here to view.

HowTo: Pronounce Mac OS XFrequently Asked Questions About Linux / UNIX

I am a new Apple Macbook pro user. Is Mac OS X pronounced as "Mac OS E-X" or "Mac OS Ten"? How do you pronounce the Apple Mac os X? How do I find out OS X version using command line tool?Read answer...

View Article

Image may be NSFW.
Clik here to view.

Clear Squid Proxy Cache And Re-create the Cache DirectoriesFrequently Asked...

How do I clear squid cache? How do I re-create the cache directories on a server where Squid version 3.x is currently running in Linux or Unix based server?Read answer to: "Clear Squid Proxy Cache And...

View Article


Image may be NSFW.
Clik here to view.

OS X Mountain Lion 10.8 Set Apache and PHP Web-ServerFrequently Asked...

I am using Apple OS X Mountain Lion 10.8.4 on my Macbook pro. For my school project I need to write an app in PHP 5 and Apache. However, I am unable to find the Web Sharing option from the Sharing...

View Article

Image may be NSFW.
Clik here to view.

Linux / Unix: Sort ls Command Output By Last Modified Date and TimeFrequently...

I download lots of files in ~/Downloads/ folder in Ubuntu Linux and OS X desktop. How do I show last downloaded file first using the ls command?Read answer to: "Linux / Unix: Sort ls Command Output By...

View Article


Image may be NSFW.
Clik here to view.

HowTo: Find a Directory On Linux Based SystemFrequently Asked Questions About...

I just switched from MS-Windows server admin to Debian Linux server admin role. I need to find a directory called project.images. I was also told that the locate command is the simplest and quickest...

View Article

Image may be NSFW.
Clik here to view.

Mac OS X: Set / Change $PATH VariableFrequently Asked Questions About Linux /...

I need to add dev tools (such as JDK and friends) to my PATH. How do I change $PATH variable in OS X 10.8.x? Where does $PATH get set in OS X 10.8 Mountain Lion?Read answer to: "Mac OS X: Set / Change...

View Article

Image may be NSFW.
Clik here to view.

Ubuntu Linux LTS: Force Kernel Package Updates Which Have Been Kept...

I am using Ubuntu 12.04.2 LTS ("precise"). I am trying to upgrade all packages using kernel via apt-get upgrade method. But, I am getting the following message: apt-get upgrade Reading package lists......

View Article
Browsing all 2612 articles
Browse latest View live